So if emotions have biological purposes, then what is the biological purpose of surprise? Surprise jolts us to attention. Surprise is triggered when our schemas fail, and it prepares us to understand why the failure occurred. When our guessing machines fail, surprise grabs our attention so that we can repair them for the future.