The factor of N! arises from the restriction of allowed N particle states due to Quantum exchange symmetry. Most substances form liquids or solids at temperatures much higher than when this approximation breaks down significantly.