The number of molecules in the different subvolumes, i.e. the state of the system, changes when the molecules in any subvolume react or when one molecule diffuse between subvolumes.