Whenever something bad happens (like getting chased by a lion), the limbic system tries to figure out everything that led up to that event so that it can avoid it in the future. Your brain accomplishes this through communication between the amygdala and the hippocampus.