Why would houses ruin an animals habitat?

As animals like koalas possums birds and many others live in trees. And to make houses you need wood from trees, so when the tree gets cut down the animals home is gone and even sometimes the animal could still be in the tree and it can get killed when the tree falls to the ground.