Earlier quoted context omitted.
If it's meant as a punishment it's not "to get their attention"; it's done to inflict pain. Again, it wouldn't be acceptable with an adult; just apply the same standard.
Children are driven mainly by emotion. Particularly young children. Pain is an emotion that tends to override other emotions. A brief, sharp pain can snap them out of an emotional loop they found themselves caught in. Since the pain is very brief, they tend to revert back to a much more reasonable state afterwards. All that said, yes there is a difference between parenting and abuse. However, children are not tiny ad…
If someone acts the same way at 25 that he acts at 13, that person would be a sociopath. But 13-year-olds are rarely sociopaths (i.e., they are only when truly mentally ill).
Children can't function the same way adults do, and we can't treat them the same way, full stop.