The primary function of schools is to give children an education, yes.
But it absolutely cannot be denied that society is set up in such a way that parents rely on school for childcare while they work.
The government knows and accepts that parents rely on school for childcare. That's why benefit entitlement drastically changes when a child reaches school age, and more pressure is put on parents by the DWP to work more hours. They expect parents to work because their child is in school.
We all know full well it functionally, day-to-day serves as the main form of childcare for working parents with school age children, whether that is the primary function of not. The government knows it. Schools know it.
With that in mind, is it honestly reasonable to only be given notice of a school closure at 6:50pm the night before?
And if schools have the children's best interests at heart, is it really reasonable to take away childcare and their parents' means to provide for them? We literally need to work. We have to feed them and keep a roof over their heads. Not all of us have workplaces that grant a days annual leave with less than 24hrs notice, and give out generous paid days off for parental leave. (School staff are being paid though!)