There is this myth, which uses an example of a handful of lucky "tech" people like Jobs or Gates or Zuckerberg who got rich and famous. In fact, none of them were/are programmers (though Zuckerberg _can_ hack around a bit)
A few numbers to refute your point about programmers being among the highest paid professions:
- doctors $400K-$800K
- lawyers - starting salary $160K[2], can go into millions, if you make it as a partner
- MBAs - even lowly "marketing managers" - often glorified secretaries - can make $150K or more
- chemical engineers - at least comparable with SW
- pharmacists
https://www.nytimes.com/2015/04/17/business/dealbook/welcome...
Bill Gates wrote a BASIC interpreter in assembly, he was more of a programmer than the majority of professional programmers today.
Unlike the US, I don't believe there is much of a perception of a "STEM shortage", which may be a contributing factor. Programmers are just not seen as particularly hard to find, at least no more than any other skilled profession. Especially after the fall of the Iron Curtain, which brought in a lot of highly skilled STEM folks into the common market.