In China, a lot of schools in poorer areas have bars with them, which makes them look like prisons. These aren't highly competitive schools, so it doesn't make sense for the bars to be for the students. Rather they're to prevent people from breaking in and stealing the furniture.
https://img.i-scmp.com/cdn-cgi/image/fit=contain,width=1098,...