Answer is: pattern recognition.
Pattern recognition is a cognitive process that matches information from a stimulus with information got from memory. Recognizing patterns allow humans to predict and expect what is going to happen. In that way human was able to remember findings and detecting hazards and resources to increase chances of survival.