When your bladder is more or less half-full, nerves in the bladder will tell the brain that it’s time to go. This need to pee might be less urgent than it feels, so a distraction might override the urge to pee for a while. So next time, try to think about something else or scroll through your phone a bit and you will see that the feeling goes away.