What other goal would there be? The idea of corporal punishment is that child fears getting hit enough that they will stop acting on the motives they have which conflict with those of the parents. In other words, they will submit to the motives of the parents.
Common sense aside, the fact that beating doesn't produce good outcomes for children is common knowledge in highly educated societies.
The American Academy of Pediatrics says:
"First, establish a positive, supporting and loving relationship with your child. Without this foundation, your child has no reason, other than fear, to demonstrate good behavior. [...] If you feel discipline is necessary, the AAP recommends that you do not spank or use other physical punishments. That only teaches aggressive behavior, and becomes ineffective if used often."