When capsaicin – the chemical in spicy foods that makes them so hot, Hot, HOT – hits your tongue, your body registers the sensation as pain. This in turn triggers the release of endorphins, otherwise known as “happy” chemicals that give you an instant head-to-toe feeling of pleasure.
Thinking about causation involves the ability to identify, analyze, and evaluate the relationships among many historical events as both causes and effects. Historians often try to distinguish between immediate, proximate, and long term-causes and effects. Some events and conditions may have some correlation without proof of a direct causal relation while others are only coincidental or without a relationship
Releasing hormones is one way this can happen. Hope this helps.