SN instructed that because of a woman's anatomy, all women are at risk of developing a urinary tract infection. Mayo Clinic notes that the short distance from the urethra to the anus and bladder opening causes this risk. The infection can also develop when bacteria from the GI tract spreads to the urethra from the anus. Sexually transmitted diseases can also cause urinary tract infections. Anyone who suspects a urinary tract infection is present should seek medical attention, Doctors conduct a urine test to determine if a patient has the infection, and it is treated with antibiotics.