People who buy property to rent out also have to pay tax on the rental income. It's just like any other business. You pay tax on your profit (revenue less costs). In this case interest just happens to be one of the costs.
I'm not sure what you mean when you say these people have an 'advantage'?