The correct response is:
the Paleolithic inhabitants sealed off the cave once all the walls and ceilings had been painted.
This action helped to protect the artwork from the elements and human interference, allowing it to be preserved until modern times.