Photon number is not a conserved quantity. Photons can be created and destroyed arbitrarily through interaction with matter. In language of statistical mechanics, the photons inside a region which is in thermodynamic equilibrium has zero chemical potential .