Why do humans poo and pee?

After you digest your food, your body takes the nutrients from what you eat and creates it into energy for your body. The leftover food your body doesn't need will come out as poop or pee.