The immune system may open the door to recurrent urinary tract infections by overdoing its response to an initial infection, researchers have found.