We have tons of websites dedicated to teaching our trade, most of them for free. We actively encourage everybody to learn to code, and tell them how easy it is, and how it makes you a better person. We say schools should teach everybody how to code.
Do you imagine medics, attorneys, engineers, etc doing the same things about their own professions/skills? "Yes I'm an architect... yeah but you should learn the same skillset, this thing I do is super easy! Everybody could be an architect easily!"
Of course corporations like this: more coders! Cheaper labour! For example I found this video disgusting while everybody else applauded the effort:
https://www.youtube.com/watch?v=nKIu9yen5nc
Do you really think your (our) skillset is worth 0?
Is this a fair statement of your views, or am I misinterpreting you?
And it's true, you definitely don't see doctors, lawyers, accountants etc. acting in the same way. I'm not suggesting a grand conspiracy on their part, but the certifications (difficult to obtain), years of schooling etc do have the effect (intended or not) of limiting competition.
It's hard to argue for better wages and treatment from employers on one hand, while simultaneously propagating the view that "anyone can do this". Well, if anyone can, then why should you get paid $150k/yr or more?