Historically, equity markets and housing provide similar returns when you factor in rent according to this super interesting harvard paper on "The Rate of Return on Everything, 1870–2015" and the corresponding HN discussion [0]. Far less liquid and actually more stable though according to the paper.
I would think the stability is in part due to its illiquidity. If the market drops 10% and you've "heard" it's going to drop another 40%, you might dump everything. If you don't get back in at the right time you can lose even more than if you had just stayed in throughout the drop.
It's rare for folks to immediately dump their investment properties because the housing market has cooled off.
[0]: https://news.ycombinator.com/item?id=19817584