We don't need to beat school children to get them to do all sorts of things they'd rather not do. Currently we get most school children trained to be effective factory workers and low-grade administrative assistants by age 14~16 without beating any of them.
People used to beat school children all the time. They used to beat minorities and torture people who have developmental problems.
We don't do that anymore, and we still find ways of achieving our aims.