This is part of the scene that greeted us after passing through the Siq (below), sort of a natural amphitheater surrounded by very high rock formations. This particular area looked more residential to me than funerary.
The Siq at Mada’in Saleh and the one at Petra as well: