Doors open to exit. Think fire, think panic. The doors leading to exit open outwards to evacuate the building.
Doors on upper floors open into the stairwell; on the ground floor they open out from the stairwell.
This is not rocket science; this is actually a very old design feature for buildings.