Actually it's smart.
It's part of china's strategy for Europeans to start consuming and using Chinese goods and products such as cars, solar panels, telecommunication network and electronic components so that when the time arises when china invades Taiwan. It will become even harder for the Europeans to decouple and destroy their economies for the sake of US and Zionist elite.
Imagine if China can penetrate and capture 50% of automobiles market share of Europe. What will the governments of European countries do when they would be forced to sanction china? Would they snatch cars from consumers?? That would be invite a massive backlash
I haven't even talked about solar panels and clean energy. What will Europe do?? Halt the essential transfer towards green energy on behalf of US?
Eventually, European countries will stay out of the conflict due to this very reason.
China knows this, this is why they are trying to improve ties with Europe and trying their best to sell their products in Europe.
China is making massive money in the EU, their companies can even charge multiple times what they charge in the mainland there and enjoy multiple times profit margins.
Over the years there has been a clear trend toward more and more money being made domestically, and in the Global South, but the EU is still a huge source of profits.
The thing is that due to how fractured the EU is, I doubt it can do much against China there. Build some electric vehicle and battery plants in France and Hungary- and they will take care of everything for you from within.
Every individual voice most often counts there and is needed for some serious initiatives like that, even in terms of economic policy.
Also, the US isn't the only one who has the influence over EU. Local huge corporations have immense influence as in all liberal democracies around the world.
Germany's car makers historically made a lot of money in China, and even though they would be squeezed out of that market in the future, they still need to actually manufacture there, for their sales to the rest of the world, as you can't build EVs without China nowadays.
The same is true for many, many other manufacturing companies that manufacture in China, China has the best resources available for manufacturing in the world if you want to compete globally.
They all also lobby to German governments to cut out any trade war bullshit. That's why the EU's help over Taiwan wasn't even a thing to begin with.
To add, this farse over peace talks with Russia is also aimed to fulfill Macron's ago, everyone knows it's just a ceremony that would yield zero chance for results.
And Russia probably wouldn't mind China saying some words like "encouraging" them for peace. There is no way that would damage relations.