If you have a dog aggressive dog.
And you use positive punishment to resolve the issue (hitting/kicking, lead jerk, prong collar etc).
And it works and the dog stops going for other dogs.
It is literally because you’ve physically abused your dog to the point that their desire to defend themselves against a perceived threat is outweighed by the fear they have that you are going to inflict pain on them.
So I hope you’re pleased with yourself.