Why am I experiencing stomach pain after taking Bisacodyl?

I am experiencing stomach pain after taking Bisacodyl. Why?