This does cause problems, but maybe if schools acknowledged that they were childcare they would be better equipped to deal with some of those problems? Or even the structure of schools might change to better accommodate this requirement.
Now whether or not schools should be primarily childcare is an entirely separate debate.
Now whether or not schools should be primarily childcare is an entirely separate debate.