It's actually the land which goes up in value. Houses go down in value, like a new car.
Sometimes this is masked, by regular maintenance, retrofits, and repairs. But if left to pot, a house is eventually worthless, then even a cost, for the new owner has to tear it down and rebuild.
Depends on the house, but houses can get more valuable much faster than the minimal maintenance costs associated with them. That’s less common in earthquake zones, but scarcity can easily drive up prices because “they don’t make them like they used to” or something interesting happened in the location etc.