I took a wilderness survival course in college. We were usually out in a park practicing skills, but one day we just stayed in the classroom and our teacher talked about what drives people to survive extreme situations, even when they have little experience or training to do so. He brought up cases of parents going the extra mile to save the child they were lost with. He mentioned Hugh Glass and his drive for revenge after being left for dead from a bear mauling. Viktor Frankl observed a concentration camp prisoner who was always optimistic until the day he saw his family brought into the camp, and then he died soon after. For some people it could be a biological urge to keep living. Or maybe their religious beliefs drive them.