The brain prefers to be optimistic