it could be possible that all these secret caves and tunnels will become refuges for the living while the land is being invaded by the others and their wights. perhaps these were where people hid during the long night while they were fighting the war for the dawn (obviously not finished in a day so people would have needed to find some safe shelter from the others).