A urinary tract infection usually occurs when bacteria enter your urinary tract through the urethra and starts to multiply in the bladder.