I don't think anyone is making that assumption, but being ok with corporal punishment likely comes down to three things:
1. We should care more about victims of violence than perpetrators, and all measures should be taken to protect victims and prevent victimization, even if it hurts perpetrators. Meaningful consequences for violent behaviour is critical.
2. The belief the physical deterrents work, if applied consistently and not abused to the point where it doesn't provide clear guidance as to acceptable behaviour.
3. That the primary job of schools and educators is to provide a safe and effective learning environment. Being therapists that get to the root of problematic behaviour is neither in their training nor in their job description.