Wall St. invests in homes for the same reason they invest in anything: because they think the price will go up. Housing policy in the US seems designed around the idea that housing prices should only go up, since it’s the largest asset of the majority of voters.
If we want to fix the housing crisis, housing will have to become a bad investment, and that will fix the Wall St. problem too.