When a chemical reaction occurs in a gas sample, the number of molecules may change.
As n changes, pressure, temperature and volume will also change according to PV=nRT.