Coffee can be irritating ...the bowels don't like it and squeeze and flush.....
Think of it like an airway....you breathe something caustic or irritating ....the airways don't like it and squeeze...flood... and shut down ....sometimes fatally. Well when airways squeeze and tighten...air trying to pass through those tight tubes....whistles... makes wheezing.....when they flood with mucus to wash away the offending agent -- phlegm wrecks havoc.
Get something in your eye...it swells to attempt to close itself off and/or it tears, floods, and washes ...
So if coffee is an irritant ...caffeine or no......it will hit those bowels with tightening, spasm, and the flood and expulsion.