"No sane person would voluntarily refrain from exploiting tax loopholes" is the same kind of argument as "no sane person would voluntarily spend money to avoid damaging the environment". In fact there are plenty of people with a decent moral compass who do exactly that.
Rarely are they exclusively the second, but landlords get to deduct the economic costs of doing business. Loan interest and property taxes cost money, buildings and fixtures wear out (but the land does not). Maintenance costs money. Landlords have the ability to deduct these costs of doing business against rental income just like every other profit-seeking business does.
Can you name a tax loophole for small-time landlords that you think is improper in the context of a tax system which taxes profits?
In many countries (including the two I've lived in as an adult) regular people get to make deductions for stuff like the cost of commuting to work, work clothes or equipment (to the extent that's not supplied by their employer), etc. By "deductions" here I mean, subtracting this money[1] from their pre-tax income and have their income tax calculated on what's left. In effect, getting taxed only on "the profits from work".
Surely even the USA must have some similar thing?
___
[1]: Often implemented as a default deduction anyone can make without proof; if your outlies are larger, save the receipts and deduct the actual amount. This general-deduction-amount at least used to be high enough that most people benefited from just checking the box to use it.