Another instructive and luminous depiction!
It's curious how many similarities exist once again between what You narrate and my country history and my mountain region in particular. There where many caves, some now little rocky sanctuaties and hermitages, where hermit monks and saints retired alone to pray and contemplate.
One of them, Pietro da Morrone, became Pope, Celestino V, the 192nd successor of Saint Peter. We're in the Middle Age and is cited also by Dante in his Divine Comedy, not positively however, and he was the only Pontiff to retire from that charge in almost two millennia, as a too heavy and mundane task, especially in consideration of the excessively hard and engaging political implication of being a Pope in those hard times that didn't allow him to answer the spiritual needs of the believers down to the most humble people.
Panta rei (everything flows)!