Capital gains don't necessarily apply everywhere. In eg Australia your owner occupied house is exempt. And in eg Singapore we don't have capital gains on any asset at all.
A house is both a home and an investment for most people. That's just a description of what's happening. However you could say that a house _should_ not be an investment.