You're correct, but the same thing can be said about any grade school subject.
Grade school and a lot of undergraduate work are often about breadth, and you'll never know where your interests lie and how you'll want to apply your knowledge to a career until you have some exposure.
Inevitably, some percentage of people taking math in high school will become engineers, mathematicians, or scientists. Some percentage of people taking English or Social Studies will become project managers, politicians, marketing professionals, etc. Some percentage of foreign language students will do business with a foreign country or otherwise continue their studies. And some percentage of computer science students will become programmers. Some percentage of students taking band, orchestra, choir, or drama club will pursue creative fields. Some percentage of shop and woodworking class students will become tradespeople.
But not every student in every one of those classes will become all of those things.
It doesn't mean that students taking these courses are wasting their time in any way. In an alternate reality you could have fallen in love with Spanish and studied it more rigorously, and you'd have used that knowledge to advance your career. But it didn't really benefit you, and that's okay.