> they can't do much if you stop paying rent.
I'm aware of specific stories where bad-faith tenants have made enforcement difficult, but I'm also aware of enough specific stories from the other side where tenants -- even some who have committed no violations -- have found themselves without housing to know that as a total generalization, these statements are false.
And you don't get to a resident-sourced homelessness crisis if landlords are truly powerless (and sure, coastal homelessness numbers are driven by bus-ticket policies elsewhere, but it's not the whole story).
AFAICT there is in fact a medium between "landlord can eject you whenever they want for whatever reason" and "no one can make you leave, ever, for any reason". Whether or not it's a happy one probably depends more on court outcomes than any apparent shortcomings in statutes, but if anyone has specific complaints about the law, perhaps they should point them out.