The Germans do it differently and can get a better return investing in themselves.
In China they have invested heavily in the robots that make the robots. Sure they are playing catch up in some areas, for instance, chips where they don't have a TSMC yet.
Even farming, where do those green and yellow tractors go? Cotton picking in China.
Some China tech is way ahead of the rest of the world. The difficulty of competing is getting really hard hence sanctions against Huawei. They had got 5G and The West didn't even know what it was for.
We have seen it before, Japan was way ahead with electronics and commodity cars. But China has a vast internal market and can proceed without making cheap goods for the West. If Western companies want to outsource to Burkina Faso then fine.
Also into the mix is that Chinese brands are desirable in China and increasingly abroad. China has barely got started.