I wet myself at school when I was about 10, and was followed by a very long period of "panic-loo-ing"!
seriously, for a few years I went to the loo at every opportunity just because you don't know when the next one may be available. I used to do a little squeeze to see if I could POSSIBLY pass something, and off I went!
it's mind over matter. calm down and try to stop thinking about it. I reckon it's a mild kind of OCD, and nearly all of us do little OCD-type things. you're not weird, but you do need to let it go (no pun intended!). your doctor may offer more advice.
good luck :o)