So China is basically exporting energy for a hefty amount of foreign currency.
Germany's power grid is well-connected to its neighbours. During peak production of renewable energy, it is "exported" to France, Poland, Austria etc. These neighbours have a different mix of production and can easily scale down power production from fossil fuels.
[0]:in quotes, because trade within the EU isn't technically export/import
Neither does the energy exporter. They get money.
People can exchange it for more energy, but you haven't reduced energy generation.