If you live in NYC, and your studio apartment is worth $500K, that's $40K in friction costs -- rent for 16-18 months for the same unit. Ammortized over 10 years, it is not a big deal. However, if you move after 3 years, that brings your "owner equivalent rent" up by 50%.
Circumstance is everything.
In a city like NYC or SF where most people can't afford a house larger than they need at the moment, the introduction of kids forces you to move -- thus, if you're planning kids in the next few years, you're better off renting even if you know you'll stay in SF for the next 20 years.
That landlord would be better off selling.
Folks don't charge based on their costs. They charge what the market will bear above their costs.