Urinating often helps flush bacteria from the urinary tract. Bacteria can grow in the bladder if it stays there too long. Drinking lots of water every day can help prevent infections.