Hitting is a show of strength.
A person who raises a hand on a child is not "broken", but claims strength. Behind his aggression is his own weakness and past trauma.
The child at this moment is not learning a lesson, he is learning to be afraid. His psyche is rebuilt for survival, and along with that, the trust in adults and the sense of security in the world disappear.
Leave if it was helpful.
Psychoanalyst.