How are people with chronic pain not constantly bitchy?

I'm the most optimistic, silly guy you'd ever meet. Tiny things make me happy. But when my health shit flares up I snap at everyone and am generally just poor company to be around. How are not all people with chronic pain like this? Or are they and I just haven't met enough

Edit: thank you to everyone for their responces. Best wishes to all of you.