In a vacuum, sure it's a bad investment. A house as described in the article is basically one that you buy and neither live in nor rent out. An empty and unused house is indeed a bad investment.
When people say a house is a good investment they mean, "Given that people need someplace to live and will be paying the cost and maintenance for lodging, a house is a good investment since that cost benefits an asset you own".