Origin and Application:
In the past, a rod was used for punishing children who were naughty. But times have changed, and many countries have outlawed physical punishment in schools.
Rod has become a metaphor for punishment. This expression means that if you don't discipline children, they will become spoiled.