A practice of rearing poultry and livestock on rooftops has helped sustain families in crowded urban areas for generations.