The origins of traditional education lie inside the military to a large extent. They needed identical people, soldiers, administrators and so on, so the produced a system. When the industrial revolution happened they too wanted identical people in their assembly lines. Even in their consumers. They wanted their consumers to be identical so every body would buy the same things.