Monotonically increasing housing prices is a privilege not everyone has. TONS of people, even in the rich western world, own houses that essentially lose their value due to inflation. Me and my siblings inherited a house in a rural town, which sold for less than what it was purchased for 30 years ago. Most houses in that town have seen stagnating prices, even brand new ones.
People still pour money into them every 10-15 years. But have to invest their money in other assets.