The tax treatment of directly owning real estate is also
extremely favorable to landlords in the US, particularly mom-and-pop scale landlords. Many will have businesses which make an economic profit and many of that subset will positively cash-flow, but for tax purposes deemed depreciation will cause their business to operate at approximately break-even or at a loss (offsetting other income). Then, when they sell the property, they either get extremely favorable treatment on exchanging for other properties (to defer taxes until post-retirement), ability to exclude capital gains, or capital gains treatment on income which was effectively business income [0] (and would therefore ordinarily be taxed at a much higher rate).
[0] This might be a little weird to wrap your head around. Suppose I am a landlord and, over the years, depreciate a building by $200k. That is a "phantom" cost. On my balance sheet, it decreases my cost basis in the building and decreases my taxable profits from the rental business. When I sell the property, because I've shifted that rental income into depreciation, my cost basis has fallen, so my gain on sale rises by $200k, but that $200k is now taxed at 0~20% not plausibly 50%+ (top individual bracket + state taxes + self-employment taxes).
(I have somewhat better than casual understanding of this because my father worked in real estate all his life and other family run mom-and-pop real estate operations, but feel free to run past your friendly local tax advisors.)