If you care to exam, many if not all government policies are in favor of banks.
By creating this mortgage interest deduction rule, government is encouraging investors to incur more and more debt and paying more and more interests.
Plus, real estate tax is the backbone of revenue sources of local government. So buy real estate is the policy to enrich the banking industry and enslave the people. Although landlord is passing through the burdens, it is the average citizen becomes the debt slaves of banking industry.
Then how about landlords? if you care to exam the roman history, the government set up a landlord class (Decorian class). Initially, that was an honor. Eventually, as roman citizens flee the country, government told landlords, if your tenants does not pay, you have to pay for it, we do not care. It is the same today, if you can not find a tenants, you still pay the tax.
How similar it is today vs. roman time.
To answer your question, you need to buy more houses with more debts so your mortgage interests can write off the gains.
Wake up. LOL