 because, well, if the wall collapsed, it was better to land on the stones and have the stones land on you. And the only protection that people in the city had from their houses falling or their neighbors' houses falling was the city building inspector.