There have always been labourers in wealthy countries that are better off in pure "numbers" terms than landlords in poor countries.
The average landlord in London or SF is likely wealthier than the average programmer in London or SF.
I assume maybe Canada and Australia are very close. But in some countries (not gonna name names), it's not even worth to put yourself through all these years of hard education. You'd be better off becoming an accountant.
Of course if you work remote with an SF salary, that's a different story...
A labourer is someone with no special skill or trade. Stacking shelves is a labourer job: the only requirement is physical strength.
Software devs are generally highly skilled professionals like perhaps lawyers.
A programmer who is not also a landlord, nor a member of the capital class, is very unlikely to have more, or even as much, wealth as a typical landlord in their area. A pure laborer is pretty much at the bottom of the wealth pyramid. That can change if you pay the laborer enough to start buying real estate in their area for example. But that would turn those laborers into landlords.