It's not that owning a home isn't an investment, it's that it's almost always a long term investment. The real estate run up that happened the first part of this decade is unusual to say the least.
There are other benifits to home ownership than just profit though. Even though owning my single family home costs considerably more than owning my old 2 bedroom condo, I wouldn't go back to the condo for anything. I like being able to do anything I'd like on my property and not have the HOA on my case, or my across the hall neighbor complaining about every little thing (actually, my across the street neighbor now calls the city code enforcement for every little thing. I guess some things you can't get away from!). We have more space, a yard, and more privacy. Those are things it's harder to put a price tag on.