Emotional arousal
Elated excitement and panicky fear involve similar physiological arousal. That allows us to flip rapidly between the two emotions.