Once you eat the soup, your waste can be fed back into the replicator to be disassembled into constituent atoms and reassembled into more soup.
It would be very possible to live entirely isolated on a planet with nothing but a basic replicator and a way to power it. That's been explored a couple of times in the Trek universe