It's worth noting that developers have an incentive to save on maintenance costs and run down properties before they tear them down. So the ugliness is often a creation of the developer. Structural and functional problems can also be due to deferred maintenance. As a simple example, if you don't fix a roof for 40 years, a house might become dilapidated. This is often conflated with "end of life" of the building, which is not a real thing for these houses, or "not economically viable", which is just not true in a city where modest wooden boxes bring in thousands a month in rent.
All around the city you can see a huge range in attractiveness and quality of what originally would have been comparable houses. Cities, I think, need some kind of solution to demolition by neglect or willful deterioration. And property ownership should be a two-way street, not a one-way ticket to windfall cash payouts without responsibility. Much of the value of an urban property is not created by the owner.