My intuition is that kids turn mean with peers when they lack the ability to manage uncertainty and ambiguity. This happens during unstructured times. The uncertainty and ambiguity makes them anxious. They lose touch with their goodness because this is what happens when we feel anxious.
What schools and parents must to in counteraction is build unstructured time into the day and actively guide students in the effective management of it.