Prisons, factories, offices, and schools are all set up on similar lines for similar reasons. Hell, the high-school built the year after I left even had pods and guardposts directly inspired by prison designs so the student could be observed by security at all times and quickly isolated from each other if the administration wanted to.
This isn't :jesse-wtf: Foucalt wrote an entire book about this.
https://en.wikipedia.org/wiki/Discipline_and_Punish
Prisons, factories, offices, and schools are all set up on similar lines for similar reasons. Hell, the high-school built the year after I left even had pods and guardposts directly inspired by prison designs so the student could be observed by security at all times and quickly isolated from each other if the administration wanted to.