Sex, orgasm or peeing?

I was having sex with my boyfriend the other night and I was moaning and getting super turned on, it felt like I was fixing to have a orgasm, but I actually Peed. I was so embarrassed. Why did I pee if it felt like a orgasm? Help?