You can either make sure your bladder is empty before you go to bed, or just take a piss when you get up.
The reason it happens, and it happens to everyone, is because your bladder often fills up over night and puts pressure on your prostate, thus w00d.