So confused?

Amy • Instagram- ammyhooper
I've always been taught to pee after sex to lower the risk of getting a uti or anything like that from sex. But if you pee from one hole, and the penis goes into another, how does peeing after sex help with anything?