Those doors are often on corridors. You don’t want them unexpectedly opening at speed into passing non-bathroom traffic. Conversely, people approaching the door from the inside will be further away as they have their hand out in readiness to pull, will expect the door to open — it’s generally lower risk.