The government should set broad goals, like “maximize the amount of occupied housing units and minimize homelessness” and then provide the appropriate incentives to guide the market in that direction.
So that’s not “letting the market decide the best use of space.” That is the Government deciding the best use of space and passing laws to encourage that, which is exactly what is happening here.