My grandfather, cantankerous Archie Bunker type that he was, once while observing a 2 year throwing a tantrum at a nearby table in a restaurant, summed it up perfectly:
Cutting the parents in half with his deadpan stare:
"what that kid needs is a
good, swift, BEATING!!!!"
It's called "the backhand". It's an attention getter.