But you could say the same about high school. It doesn’t follow that reading writing and algebra are bad vocational investments, in fact the opposite because they support many possible vocations.
As a CS professor, my goal is to push students to rewire their brains in ways that are better and more effective. It is also for them to gain foundational understanding that will allow them to learn advanced vocational skills. I teach theory so software engineering may be different. But of course I don’t want to teach something that will mainly be useful only for the next 2-3 years of their career, I want to have an impact on the next 20-30.