As long as the rate of extraction of energy is lower than the rate of replenishment of energy then that net transaction seemingly produces a net gain.
However the minute Rate of extraction of energy exceeds the rate of replenishment someone loses because the energy you use cannot be used by someone else. For example the entire population of the world using as much energy as the people in the United States is unsustainable.
In short the participants in the transaction didn't lose. Someone else outside of the transaction lost.