It's very typical of Nigerian mothers to scold their children first before petting them. It's like shooting before asking.
Imagine a child falling down and crying, then the next thing, the mother comes out with a broom screaming 'Didn't I tell you not to do that? You'll get your cane today".
Why? Is it out of fear?
I mean, I remember when I was a lil kid, used to love climbing trees. Anytime I fall, my grandma would come after me with a cane, screaming "o ni koba mi. O ni pa ara e simi lo run." (meaning: you will not get me in trouble. You will not kill yourself on me). After a few running, then she comes comforming me and checking for broken bones.