Essentially, the brain is doing a last-ditch systems check — replaying memories, emotional anchors, and learned survival cues to find any relevant information or pattern that might aid escape or coping.