Pain after sex

Trinity

Anyone else ever have sex snd then it hurts to use the bathroom after?? This has happened twice now. Kinda like a UTI pain. I went to the dr last time for antibiotics but that wasn’t the issue and It went away in a few days. I’m just kinda curious why it does this