In fairness if you’ve ever been bullied and corned out of view of the teachers, having someone seeing you may feel like a relief.
In my school experience they turned a blind eye unless you fought back in which case they would punish you for fighting back.