Food is obviously not comparable (you must consume it and only s*t is left over).
Cars depreciate quickly becase they wear out in the timespan of a couple decades. You can keep them going longer but it's a labor of love, not really economically worthwhile.
Housing is completely different. Absent some disaster (fire, earthquakes) it will last centuries with just basic routine maintenance. Given that inflation is a perpetual constant, something that lasts that long can't possibly not appreciate, it inevitably must.