Corporal punishment is the act of flogging/other violence to be used on a child so as they would not repeat the deed to ‘deserve’ it again. An evolutionary perspective could view these drastic acts as proper – children who more regularly suffer from these attacks will survive in natural selection. They would be tougher and more adapted for survival/more prone to less damage taken by acts of corporal punishment.
In a social-cultural view, humans are considered as different beings. Some may react in a proper way to corporal punishment (doing what the dealer desires), some may tolerate it, and others may consider it as a childhood trauma. If only a collection of children suffer from this nefarious type of physical torture, they are more likely to feel traumatized in the future as they stand out from the others in their social community.