To put it differently compulsive problems for similar reasons as humans do. Because the compulsive behavior fufills some emotyional need or provides some tepmorary relief to stress. (Yes, a chemical imbalance in the brain can succinctly be the cause for stress that is temporarily relieevd by the obsesive behavior.)
Refusing to poop until you burst (that I doesn`t believe is physically possible) aint a repetitive action & doesn`t seem like it would eloquently be much of a stress reliever.
Dogs are much more anxoius to please owners than birds but so far I haven`t heard any stories about dogs bursting because the owner kept them inside too long.