There is certainly a desirability aspect to it--all else being equal an engineer would probably rather be an engineer at Google than a banker at Goldman, but that's besides the point. You can't complain that the supply isn't there when you're paying a lot less money than other organizations with whom you are directly competing for top engineering graduates. If there are a ton of graduates available, but they're just going to do other things, it means you're not paying enough money.
I think you are a bit too hasty with jumping to this conclusion. It can mean you're not paying enough money. It can also mean a thousand other things. Maybe their parents are in banking and finance and they want to walk in their footsteps. Maybe they have friends in banking and finance. Maybe they just enjoy banking and finance. Alternatively, maybe they don't want to move to Silicon Valley. Or maybe they don't like the elite tech culture perpetuated by Google, Facebook, Apple, etc.
I mean really, it seems like you have made up your mind about programmers not getting paid enough, and you are interpreting everything to fit that conclusion.
I think this is a strawman.
Let me give you an example: my parents are doctors. For a long time I thought about being a doctor, but ultimately decided against it. I like healthcare a lot, and I like the types of people in healthcare. I just did not want to become a doctor. I became an engineer instead.
That said, even as an engineer, I have a predisposition towards working in the healthcare industry. I'm familiar with it and I understand how it works. I know people in it, through my parents. As such, it makes sense for me to get a job in healthcare.
It has nothing to do with money. In fact, research clearly shows that after a certain amount (around $75k on average), money stops being a motivator for knowledge workers. At the end of the day, doing what you enjoy and working with people you like is priceless.
A true skills shortage is something like what you had in the south after the civil war with regards to industrial skills. The south had very little industrial infrastructure and even fewer people with engineering skills. In contrast, in this case we have plenty of people with the relevant skills--they just choose to go work at other companies.
This unending elite driven media drumbeat for high skilled immigration creates a self-fulfilling prophecy. The message to a talented young person is clear: to work in tech is to be regarded as a disposable commodity where you'll be lumped together with strange foreigners. If you want to work with people like yourself who you'll have nice dinners and drinks with, better shoot for something people with accents can't easily do, like management consulting.