If the "logic" is the same as the UK

You can't force people to leave where they are as this would damage social cohesion.
It would discriminate against the homeless people forcing them to live in a deprived area.

More prosaically, if you give them the houses, who is going to pay for the upkeep? In the UK that of course is the state. By demolishing them you are reducing future outgoings with a one off cost.