Investors only invest in things with a good return. It's why they don't buy up, say, nails, because the nail makers would just produce a lot more nails to sell to them and they'd be left sitting with a bunch of nails.
They invest in housing because it's scarce because we don't build enough of it.
And if you look at the actual numbers, large-scale institutional investors just aren't that big a factor. It's another bogeyman for people desperate to avoid the solution to not having enough housing: building more housing.
Austin is an example of the market balancing out when allowed to do so.