Just when you thought your potty-training work was complete, your toddler now reports that it hurts to go — and your gut tells you the problem could be a urinary tract infection. A UTI occurs when bacteria enter any part of the urinary system, including the bladder, kidneys or one of the two tubes that carry urine through and out of the body, either the ureter or the urethra. Trusted SourceMayo ClinicMayo Clinic Q and A: Urinary Tract Infections in ChildrenSee All Sources [1]