For a simple example, consider farming, where plants are used to harness the energy of the sun and capture it in a form useful to humans. Yes, there are inputs that go into it, but the output is more valuable (economically and otherwise) than the material input, because the plant also captured a bunch of solar energy that would have otherwise done nothing useful for anyone's economy. My economy has now grown, without having to take or go into debt from some other economy.
Even in a scenario where I do take on debt to get the materials/water/whatever, the value that is created is greater than the debt taken on. If it wasn't, then I wouldn't do it.
Humans create value by harnessing more energy and using it more efficiently for things that humans (and therefore economies) value. This is an ongoing process, with a long way to go.
Everything in the economy thats worth producing/consuming costs energy and labor. Energy and labor is not free.
You may be conflating win-win with debt-based growth, where economy can grow at the cost of running fiscal deficit and accumulating debt. Sure the economy and market can grow, but the debt will also grow and the inflation will cancel out the nominal growth