Rents go up but the landlords costs stay static. A lot of small landlords start out at something close to break even from a cash flow perspective. At this point the landlords “profit” is the appreciation.
That said the cash flow gets better over time as rents increase.