Except in this case, what is less profitable is investing in land/infrastructure that could serve as housing but leaving it vacant.
That is not investment in housing, simply speculation on land and buildings.
Investment in housing (ie actively rented places) are unaffected, so there is no reason there woukd be less investing on that front