This ignores the leverage applied to a typical primary residence purchase via fixed rate debt. With 20% down, your return is 5x inflation, and housing indeed is a perfectly reasonable investment when you amortize transaction costs over an extended period of time.