At one time, physicists thought that no two particles in the same quantum state could exist in the same place at the same time. This is called the Pauli Exclusion Principle, and it explains why there is chemistry.
But it has been since discovered that a certain group of particles do not obey this principle. Particles that do obey the Pauli Exclusion Principle are called fermions, and those that do not are called bosons.
Photon are Bosons so they does not follow the Pauli Exclusion Principle.
Regards