The link supports the statement "housing tracked inflation for 400 years". I think the confusion here is the word "investment" is overloaded and could refer to a number of different things regarding property:
- you buy the property that you personally will live in
- you buy some other property and let it out to tenants or businesses
- you are a pension fund, mutual fund, hedge fund, day trader, bank, HFT etc which trades in derivatives based on mortgages
The first two have been going on for centuries at some level. The third only really got going at the point house prices completely disconnected from inflation.