It’s bc of how close your butt is to your urethra. Most utis r caused by an excess of ecoli in your bladder. Cause all the like fluids from sex kinda spreads it around. That’s why you can also get a uti from sex toys/masturbation and peeing can help wash it out before it becomes problematic.