wouldn’t it be wiser to put that money in the mortgage rather than pay someone else’s mortgage. But maybe it will make sense for the right rental.
letting someone else absorb house price decline on the order of 10%/year far outweighs any other possible financial reasons.
Consider a house that’s worth 500K today. Renting it will cost $2000-2500/month. Buying it will cost you at least $2500/month in interest on your loan, plus possibly $5000/month in depreciation.