To limit the probability that persons passing through the door will have difficulty in negotiating a step at the doorway, which could lead to delays in the evacuation or movement of persons to a safe place, which could lead to harm to persons.
To limit the probability that persons passing through the door will trip at the step, which could lead to harm to persons.