When I used to consume coffee in over abundances, like several pots, several times a day, and I wasn't sexually active, I would find some leakage sometimes, even without having been asleep or having had an erection. I also didn't masturbate at the time. When I started exercising that part of my body, sexually or masturbatorily, those emissions decreased and when I reduced the coffee, they stopped nearly entirely. Occasionally, 20 years later, some small amount will leak out, not urine and only enough to leave a tiny wet spot on my undies, but it's just how my body works and I'm ok with that. A doctor told me my prostate was overactive but it wasn't a problem level.