It's not logically thought out, emotion is a parallel decision making process to logical thought. It may be that in some circumstances, fear is a logical outcome of a stimulus, but that's not the same thing.