There's a molecule in them called capsaicin that tricks pain neurons into activating and your brain reacts as if you've been burnt. But you haven't, it's an illusion. There is no burn at all. There's nothing there. You're just going through the motions. Isn't it convincing? It can kill people, even though there is no actual injury, the response is as if there is, which can overwhelm you.