There's a lot of people who can write/edit good copy, and a lot of people who want a job writing/editing copy, but a limited amount of jobs, and I doubt the market is expanding as fast as tech. Think of some problem that can be solved with software and you've just created X programming jobs, X = # of people required for that company's engineering department, whereas the value to society of adding another news site diminishes quickly.
So there ratio of people who can write good code to programming jobs is lower. Also, and this is a huge assumption on my part, the # of hours you need to put in to be a competent programmer (at the level of money I'm also assuming you make) is greater than the hours to be skilled enough to produce decent copy (for the average person). So it's more difficult for the # of programmers to catch up to the # of programming jobs. Thus, the demand for programmers drives salary.
This is all without talking about the subjective amount of value to society a programmer can bring compared to a copy editor.
To fix this (I hesitate to call it injustice) we could raise taxes+implement UBI or increase funding to some other social welfare programs and raise the maximum income required to take advantage of them. But I think essentially, what careers people choose should be somewhat influenced by what society needs, and salaries can reflect that.
Not saying that the demand for programmers isn't all fucked up because of startup speculation and other factors, but I think in general the tech industry provides a lot of value for the world.
Educate yourself on why does that happen. Main purpose of every company is to make money. As long as IT is making a lot of money programmers will be paid a lot. As soon as industry starts to cool down - our salaries will drop as well.
I know about the ageism in the industry, and I do worry that in 5-10 years I'll be struggling to find work. I hope I'm wrong.