Bacteria in the vagina, and anus will enter the urine, go to the bladder and cause infection. This occurs when bacteria from your partner’s penis, vagina, anus, fingers, or sex toys are pushed into your urethra during sex.