sadly, some teachers did get sexual pleasure out of smacking children’s bottoms, and if they knew they would not tell their parents they were more likely to be victims.
I think the punishment of 3o smacks, even when I was at school in the 1920 period, would have seemed very harsh. It sounds very much like this teacher enjoyed smacking which is very wrong.