House is an investment even if you build it entirely by yourself from materials harvested and processed by you. You invest a chunk of your time and effort to build something you expect to “pay you back” in the future, eg. keep you dry and warm when it’s cold outside.