Reasons for shouting
When I hear my children shouting, most of the time, I’ll investigate.
Some of their reasons:
They’re having fun
They’re hurt (physically or emotionally)
They’re frustrated
They think things are unfair
They need attention (they never have self-awareness of this one)
I suppose these reasons won’t change over time: adults are much the same way.