UTIs typically occur when bacteria enter the urinary tract through the urethra and multiply in the bladder or other parts of the urinary system.