When there's no place for the compacted feces that's building up to go (due to a failure in peristalsis, for instance), it backs up into the the stomach, which naturally irritates the stomach and causes the person to vomit the contents, which includes their feces.
I wouldn't wish it on anyone.