“You design a school just like you design a prison,” has been a maxim in architecture schools for decades. Thus, frequently, they are designed by the same architecture firms.
And, evidently, are maintained the same way, as well.
FWIW, I think schools should be more like schools, not pretty prisons.
(Come to think of it, I believe prisons should be more like schools, too, but that’s another story.)