That's just not true, people leave shitty landlords, buildings, and cities all the time. People also confuse housing as a necessity versus good housing in a good location as a necessity. It's normal for desirable cities to be expensive, if algorithms are truly scalping people on rent, then those cities would be less desirable and the rent would reach equilibrium.