Was it also surprising that no school ever had compulsory classes in agriculture/electricity/plumbing/electronics/medicine/all the other things that cause such changes in society, or is programming somehow special?
Programming is useful for engaging in many scholarly subjects. Like penmanship, it may simply be that the schools see programming as a tool that will be needed in order to teach subjects in later courses, and not due to any connections to industry.