your body doesn’t. The stuff goes through your gi-tract, and material is absorbed into your bloodstream to support your body. Stuff you can’t/don’t absorb becomes part of feces. Your kidneys filter your bloodstream, and stuff they remove from it becomes urine.
Urine isn’t a direct line of ‘consumed fluid->pee.’
Latest Answers