In brief
Sassi in Matera shows a relationship between habitation, rock and ecosystem. The separate opening in the rock does not describe the entire settlement.
Useful to know
Sassi and the park of rock churches in Matera are an example of habitation adapted to terrain and ecosystem. UNESCO places the site in the Basilicata region of southern Italy and describes successive historical stages of settlement. [1]
The key to architectural reading is the village scale. Do not view each rock room as an independent "cave" separated from the neighbors and from the surface above it.
In a joint photo, he traced the levels of the terrain and the relationship between shaped openings and built parts. Then use a plan or a cross-section if you want to understand inner connections. The entire distribution is not to be thought of in the front shot.
The earliest traces of habitation in the area are not the date of any part visible today. This distinction is important in a multi-layered settlement. For a specific house or church, one needs one's own historical context, not just the general antiquity of Matera.
Sources
For further detail and to check the information: