Exactly. Homes retain their value because repairing wear and tear is quite affordable. Even expensive repairs like a new AC or roof is still only a fraction of the cost of the home. And those repairs will last for 2+ decades.
Meanwhile, an expensive repair for a car, such as a new engine, will often result in the car being sold to a junkyard due to the price relative to the value of the car being extremely high.