Most schedules get built the same way: block out a week in summer, print the class lists, and start filling a grid with the important subjects first. By day four it is eighty percent full and looking good. On day six it collapses, because the only Physics teacher is also the only person who can cover Year 11 Chemistry and both need period three on Tuesday.
That collapse is not bad luck. It is the predictable result of building in order of importance rather than in order of constraint.