Never happened before??

Ke
So this morning (I was up at around 5) I got out of bed and it felt like I peed myself! I ran to the bath and thankfully I didn't and so I went to the bathroom and climbed back in bed to sleep. I tossed and turn and got maybe 30 more mins of sleep and when I got up that same sensation happened! I've never had that happen...anyone know what causes it?