It has value. And thus you can sell it or borrow against that value. The alternative of renting does not maintain value. You pay to live there for a month and then at the end of that month your value disappears.
It is true that a house has its downsides and requires more effort. That is true of most anything with value.