Yes, I know. It is unfortunate though, because it does affect children's experience of education. Being forced to do something, even something you might enjoy, makes it less attractive. If it's a question of childcare, we could at least open the doors to the playground and let the children choose whether to come in for lessons or go out to run around.
I remember when I was about ten I was offered the chance to participate in a summer school to learn Latin. We'd all chosen to be there. The teacher and activities were inspiring. I loved it. On the back of this pilot project, two years later Latin was introduced to my school. It was the same teacher and the same activities. I hated it. My classmates didn't want to be there and that soured the whole experience. The teacher gave it up as a bad idea after one year.
It's only since what, 1870? that there has been any compulsory element to education. Before that children went to school because they wanted to or because they felt there would be some benefit to them. As I understand it, the law changed not for educational reasons but to spare children from the factories. That isn't so relevant now because we have other methods of safeguarding children, and also the welfare state means the poorest families are no longer tempted/forced to send children to work just in order to put food on the table.
I'm not convinced that it is a good idea any more to insist that all children enrolled at a school must attend all the time.