The reason was accidently given on a council's website used by parents and pupils to check if their school is shut.