Yelling at 6 month old..

My 6 month old scratches and pulls hair. My mom tells him "STOP you need to learn" in a very stern and mean voice. Like is she dumb or does she just not care that he doesn't even know any better? I don't like the way she talks to him he's just a baby