Having worked in public schools for a number of years I can tell you that no matter how hard they try, they can't control everything every kid does or be everywhere at once.
They have to provide education too.
As bad as it's getting nowadays, it's becoming almost impossible to maintain discipline.
Too many kids just don't care and neither do their parents.
For $40K a year in tuition.. they can figure it out.