Feeling of having to pee during sex

Such a weird question, but ....

Sometimes when having sex and he is in me I feel like I have to pee bad.

Not so experienced with sex since my current boyfriend is my first, what is it that I am experiencing?