AFAIK the early hours classes are meant to build discipline, not to optimise for learning. A lot of school rituals seem to be built with the goal of making you used to a disciplined punctual life, rather than actually teaching you any knowledge.
High school sports complicates logistics later in the day.
It's not just a question of learning; it's also a question of cost and resources.