It only made sense as a medium-term investment - buy with cash, maintain for a decade (and maybe you're cashflow positive for part of that), then sell for a profit (hopefully).
Similarly, local to me, renting a house really only makes sense if you bought cheap (which for us normies means we bought it years ago, so the mortgage is cheap vs current rents).