Favelas are a local optimum which systemically is very difficult to get out of and is a sign that the regulator is powerless. It's a great example of a market failure.