Imo it boils down to a child needing to feel some semblance of control in their life, and because their brains haven’t developed enough to find more constructive ways to do that shit like this happens.
You see this throughout humans all over the world, adults and children alike. Self-determination and the ability to make choices, however small, is important.