If there weren’t differences between the educational environment and the workplace, that would be the same as if you just dumped people straight into the workplace with no education. For education to be useful at all it has to be distinct from the “real world” and optimized for learning. One way of optimizing for learning is to make the student solve the problem the hard way, so the student understands the entire process and not just the parts that are harder to optimize.