Kinda nasty but ive always wondered...

I've only had diarrhea a couple times in my life but why does you butt always burn after? Cause it just clicked in my brain, like moms always put desitin or any diaper cream on their baby's butt cause the baby is in pain from a rash or sitting in a diaper