That isn’t unique to schools though. In older buildings outside of gated communities, they are extremely common in first floor and second floor apartments too.
That's a good point. It's especially noticeable with schools though because they're often isolated and completely empty very often. This makes them look especially prison-like.