why did a get a strong urge to pee bc it felt good

Was having sex (I’ve never cum) and it felt good and all of a sudden I felt like I really had to pee? Is that squirting are you supposed to just let go or did I just have to suddenly pee like is there a difference in feeling