That is because they want to undercut the US and prevent them from making money. It remains to be seen if they'll be as benevolent in making tech open-source if they are the clear winners. Frankly, I don't see why they will.
It is strange and inappropriate to call that observation racist.
We can discuss the reasons why they might or might not open source things, or we can agree not to because someone might call us racist for discussing corporate and wcenomic motivations.
The West mostly has not shared their knowledge. Most software is not open source.
I am simply assuming that China follows the same principle - try to wring maximum advantage out of their industrial might and commoditize their complement wherever possible. Because of China's unique single party system, their strategies are very top-down coming straight from the CCP in key areas like AI and robotics. It is not racism, simply realpolitik.