"We" don't destroy our immediate habitat, "we" destroy other people's habitats. Wasn't until recently that it became obvious that such a behavior destroyed our own habitat regardless, and even today it's not clear to many people why they should stop. Until then it was just a morality problem, and capitalism has no notion of morality.