Side note: this is written in 2019. Can we update the title?
First, terminology. "Flipping" houses has a completely different meaning. The author mentions buying a house and "flipping" it 5 years later. That's not what flipping is. Flipping is short-term and typically means rehabing a property. Done quickly, you can make a profit on this if you're good and can control your costs and keep to short time frames. People do pay a premium for finished products and/or just don't want to deal with the headaches of massive renovations.
Second, the author makes the same mistake every pro-stocks author makes and completely ignores leverage and borrowing rates. 1-2 years ago you could get a 30 year fixed mortgage as low as 2.5% with an 80-95% LTV. Try getting that on any portfolio. Houses don't have margin calls either.
Third, this was written in 2019. A lot has happened since then. The 2006 to 2022 housing situation is radically different.
Fourth, the national average of house price growth over that period isn't really meaningful. This isn't stock-picking as the author alleges. Just narrow it to greater metro areas with low unemployment, a growing population (even modestly so) and relatively low state public debt (ie not Illinois) and the picture is radically different.
Fifth, real estate tends to be a very good hedge against inflation. We're seeing that now. Inflation has skyrocketed and so has housing in the last year. That's not an accident. There are some systemic problems here but that's a separate topic. As someone who is trying to protect the real value of your assets, you only really care that it is could happen or is happening not necessarily why.
Lastly, property tends to be much better at generating an income than any other asset class. Gross yields of 8-10% aren't that uncommon. Getting a dividend yield like that is going to be much harder and will have much greater capital risk.