They had to have. To get energy they need to perform cellular respiration. To do so you need oxygen and sugar. You get the sugar from food so you have to remove the left over food by pooping. The leftovers of cellular respiration is CO2 and H2O. The H2O exits when you pee. Hope this helps!