To limit the probability that users will step from a doorway or stairway onto the sloped landing surface of a ramp, which could lead to:
This is to limit the probability of harm to persons.