If your landlord doesn't figure those costs into the rent you are getting over. Most do!
I’m an owner and former landlord. Owners of rental housing have to be competitive in their market just like any other business except they can’t relocate. Rents can go up $25 or $50 a year, but each neighborhood has it’s own ceiling - especially blue collar neighborhoods. Raise rent too much and it will sit vacant as vandal bait.
Yes, I can get some expenses back when I sell it IF I need capital gains deductions, but it’s still a cash expense up front for a lot of stuff. Equity gain doesn’t cover loss over the first 10 years of a mortgage, because all you’re paying is interest, with a few dollars thrown towards equity so you don’t feel bad. Renting a home that is paid off does give some profit, but again, you’re limited by the home’s age and neighborhood as to what your profit really is, and then there’s the taxes again. If your carrying costs are $500/mo in a neighborhood where the rent is $650 or $700, even if the house is paid off, you’re not making any profit. The only advantage I’ve found to renting a house out is enhanced credit rating.