If I buy a house in 2009 when the market is depressed, and by 2023 the value of that house has gone up immensely, but my mortgage is still based on my 2009 purchase, I can charge less to rent it out than it would cost someone to buy it. Or I can charge the going rate, and hope I find someone willing to pay it.
But if I'm on the other side of the table, it is usually cheaper and easier to rent a house from someone who bought it years ago than it is to buy a similar house myself.