And root causes, especially for problems as complex this, is a fallacy.
No, it starts and ends with peoples' lives and how much of it they must expend to keep it going. There are no such thing as "raw numbers".
We as a society can define how our economy looks like, it is not some hard defined concept like the speed of light or the very basic principles of mathematics.
Economics is a soft science, and we should treat it is suchs.
The raw numbers don't say much, expect the result of how we have shaped our economy. There is very little preventing us from changing the way the housing market is structured in a real, hard fact kind of sense.
> despite working hard
that's a non-sequitur. Migrant laborers on farms work absurdly hard. "Work hard and get more" is practically a boomerism at this point. There are many reasons to work hard, but none of them have to do with guaranteed home ownership
it starts and ends with raw numbers
No it doesn't. If that were true markets would be reliably self-correcting and market failures would never occur, rent seeking wouldn't be profitable and so on. In reality there are variations in elasticity of demand and supply, regulatory issues, and economic network phenomena like preferential attachment, all of which substantially complicate the picture.
On average, this may be true, although "how hard they are to replace" is difficult to quantify and most of the scarcity is artificial. But there is enormous variability in the relationship between pay and revenue/profits provided and opportunities for replacement. I am certainly paid much more than I should be, since I work in a cost center and in that group I am definitely not the one bringing in work or revenue, and I suspect I would be very easy to replace. But at the time the contract was signed, I had the right certifications (e.g., PhD) and the right resume. Like many others, though.
And about your comment:
SW aren't well paid because of how much money they generate or how hard they are to replace.
1- I'm not sure why you say this but SW are not that difficult to replace. There's plenty of SW around for everyone.
2- What actually determines the fact that SW are so well paid is just luck and time. What do I mean by this?
2.1 The profit margins in software services are the biggest. An easy example is Amazon. Initially a simple bookstore. Then a e-commerce shop. This is what Amazon is. And yet their margins for this is about 1% and for their cloud services is about 40%. Amazon CAN afford to pay SW well not because it generates more money, but because it has huge profit margins. And why is that?
2.2 Because it just so happens tech is VERY NEW and has changed everything far too fast for the market to adapt. Consumer physical products have been manufactured and sold for decades. Agriculture is a much more essential service than SW and it's some of the worst paid industry. Their profit margins are close to zero. All the money that could be extract has been, capitalism has done a good job of making it cheap for consumers. But tech? The world of mega corporations, monopolies and duopolies, there is often no such thing.
It's not about value to the world SW provide, money SW generate or hard to replace. If you really want to talk about value to the world there are many other careers that do. SW isn't one of them. SW are just well paid, due to luck, timing of being born right now, and the fact market is very new and hasn't adapted yet, that's it. Enjoy.
Your cognitive dissonance isn't unusual but I think it does a disservice to our ability to have productive discussions on any number of issues. Whenever issues come up of who deserves to make more or less, they get bogged down with who works harder and who's work is more meaningful.
It's economics and it starts and ends with raw numbers. Acknowledge that first, then move on to how to make it better.