system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: Why does pain sometimes feel...good?
gpt
Your body releases pleasure chemicals (like dopamine) in response to pain so that you aren't just debilitated by pain. This has an obvious survival advantage so you can, for example, get away from a leopard even if you have a broken arm.