As a fellow Indian growing up in 90s, I feel you. I had my fair share of beatings from teachers in school.
There were cases where parents who found it challenging to control their kids, would encourage teachers to use physical force on them. Parents deemed it was school's responsibility to instill discipline in their children.
As far as I can recall, use of violence to control kids was pretty common back in the day, both at home and at school. I don't see that happening nowadays, though.