Lets start with residential doors. Why do some front doors open inward and some open outward? Many people may not notice the way their front door swings or may not be an issue. Access to your front door may be by design taking into consideration the flow of traffic, electrical components near wall or designed for a reason
As a field observation I notice that most doors open inward as supposed to outward.
The reason most doors swing in is very purposeful and effective. Since doors have hinges ( with or without security pins) and the hinge was considered to be the weak point contractors will place the door swing in to avoid intruders from entering the home. As a method to try to make it harder and prevent an attack if the door swings in, the hinge will also face the interior of the house. It made the door look more aesthetically pleasant preventing. Removing the hinge pins completely detaches the door from the frame. In certain cold weather areas snow can be an issue that affects your door position. For example if snow could potentially build up outside your door opening outwards won't be a wise choice during winter season. In the same line of weather affecting door position. Opening the door outward would provide more strength against strong wind pushing against the house.
In addition in opening doors can also be more easily equipped with extra security features like latches and chains.