There was another set of dwellings built against the cliff walls and they made use of the naturally eroded caves for additional space. You can see scrape marks on the walls, indicating the people expanded the caves as well.