Yes, and that's the problem for programmers - those who'd prefer to solve problems better in the long run, which costs more in the short run.
In other words, there are programmers, who don't see a point in learning something which isn't really novel and isn't really progressive, but which is required to get a job. Some go for lower salaries, those are sometimes much lower - that's why people with high salaries e.g. from FAANG can be seen as delusional about their actual skills when compared with someone 1/5 of their salaries and stronger design abilities.
The problem - and the associated question - is what to do in the long-irrational market. One answer is known :) but it's not a particularly good one. Hope there are better ones -
> I chose some hot technologies that I could tolerate because I understood that’s just where it is
Sometimes market wants more than you could tolerate - emphasis on the last word.
Also, I chose some hot technologies that I could tolerate because I understood that’s just where it is. I also learned algorithms on my own and understood when to apply them. If the market asked for hot technologies, you shouldn’t have to adapt. Otherwise you should accept a lower paying job.