The word comes from "spelunking", which is the act of exploring caves, particularly for recreation or scientific research.