Chlamydia and gonorrhea are other types of bacteria that cause sexually transmitted infections, or STIs. These bacteria can cause UTIs that affect the urethra. Men with a UTI in the urethra may need to be tested for STIs.