you're laughing so hard that your smooth muscles in your bladdar cannot hold it. Or etiehr you just have a full bladdar and if someone makes a joke, you'll pee a little due to muscle failure.
A good "belly laugh" will shake internal organs to some degree, and if the bladder was seeming full then that little shake and vibration is enough to trigger the reaction as you describe.