Especially in the developed world, most landlords will properly maintain their properties even when doing so proves costly in the short term, in order to attract higher rents and more desirable tenants in the long run.
In regions with well-established economies, landlords generally prioritize maintaining their properties, even if it means incurring expenses upfront, as a strategy to attract higher-renting tenants and boost property value in the long term.