But all the other actors in the market have the same tax advantage, so the house prices rise in concert with the tax deduction. (at least in SV, can be different where construction costs dominate)
When using normal real estate investment vehicles, investors are also able to deduct the interest as a business cost.