I think the idea is that the market is supposed to work by the principals having good information about their situation and thus being to choose the best decisions. That's at least my one line summary.
In this case it's hard to say someone else was to blame, because the principals had mostly not delegated the decision, they were literally deciding with their own lives at stake. If it were some principal agent problem you'd find a common excuse: it's the agents fault, they chose in their own interest and not the principals.
And yet somehow they didn't decide to repair the building. So yes, even though we had a bunch of free adults with years to make the decision and the lowest interest rates ever, they didn't fix a thing that represents a catastrophic risk to themselves.
No doubt someone will dig deeper into this and find some way the market was impeded, ideological wars being what they are, but it's hard to see how that would explain away the casual observation that people had the agency to avoid getting killed here.
Note that I'm not arguing for more government control over these things, that tends to create an agency problem. Just puzzled over how it could get to this, and a bit questioning how useful it really is for people to decide these things themselves.