There's also a healthy cynicism here toward adults. The teachers aren't just oblivious- they actively make the situation worse by sending the clear message that a vindictiveness is the best policy, at which point it becomes pretty obvious where the dominant student clique got their ideas about what makes for a healthy social life. The victims here are actually somewhat sympathetic. They do kind of deserve divine retribution, but it's not like anyone was telling them it was a bad idea at the time.