To limit the probability that persons will hit or bump into a window, which could lead to the failure of the glass [e.g. breaking or splintering], which could lead to harm to persons.
To limit the probability that persons will fall through a window if they hit or bump into it, which could lead to harm to persons.