The body produces pee as a way to get rid of waste and extra water that it doesn't need. Before leaving your body, urine travels through the urinary tract. The urinary tract is a pathway that includes the: kidneys: two bean-shaped organs that filter waste from the blood and produce urine.