Having switched professions twice, I now use practically nothing of what I learned in university from about second year forward. Math and to some extent physics are still relevant, but that's pretty much it.
It might be painful to admit, but the practical value of that rather specialized knowledge that took me several years of hard work to obtain is pretty much zero now.
It's sad that your professors didn't tell you beforehand that you were going to learn how to learn during that time, not just study a particular technology stack.
That said, you need tools of some sort if you're going to actually build things as opposed to just learning, say, algorithms in pseudo-code. And it probably makes sense to use some fairly standard language to do so. There's not much point in making things deliberately obscure by making students use some language that the professor designed for his PhD thesis.
The waste was close to total, but this is only obvious in hindsight. Given the information I had at the time my choices were rational.
And obviously applies in lots of areas. If I'm looking for someone to head up a digital marketing or marketing research initiative, someone whose only work experience is software development is probably not the best choice no matter how smart and motivated they are.
OTOH, as you get to the level where people are more managers than practitioners, their specific skill sets presumably start to make less of a difference.
Added: And, as peer noted, people do shift careers significantly all the time. I never really directly used my undergrad (or grad) engineering degrees all that much.
While Alice may have fewer years of experience than Bob, she might have effectively more experience if she absorbed understanding at a faster rate. An unexperienced, high-intelligence person usually starts at an initial disadvantage, but manages to "get up to speed" quickly.
This also underscores the particular importance of intelligence in software. The field is constantly awash in new technologies, where nobody has had time to accumulate extensive chronological experience. So, it's really important to find people that can absorb new concepts quickly.
[1] https://www.sciencedirect.com/science/article/pii/S019130851...
I haven't read the research myself but if they are only looking at interviews, this could be explained by the fact people with absolutely no prior knowledge would be filtered before reaching the interview.