Fire code requires that doors swing open in the direction of egress under certain conditions:
https://www.nfpa.org/Assets/files/AboutTheCodes/101/101_FAQs... (PDF link)
https://www.nfpa.org/Assets/files/AboutTheCodes/101/101_FAQs... (PDF link)
The very first sentence of the paragraph in your link's section on this subject mentions these exceptions.