Houses are bought in a chain, though. In a chain there might be only 1/10 people taking the cash out.
Second, 5-6% of the typical sale go toward the agents and closing costs. Again, this is money that leave the system.
Third, if some of the sale proceeds are applied to repaying an existing mortgage or to finance a home purchase, this is neutral as far as the "investor-backed mortgages create money" argument goes.