Your different emotional reactions can be explained by the "Cognitive" theory of emotion.
Cognitive theory of emotion which is otherwise called the two-factor hypothesis of emotions is an instance of a psychological hypothesis of emotions. This hypothesis proposes that the physiological excitement or arousal happens first, and afterward the individual must distinguish the explanation behind this excitement to experience and mark it as an emotion.