It isn't the country directly collecting and analyzing data. It is a company. Chinese companies are required to share data, but so are U.S. companies.
If we focus on the companies, why is okay that U.S. companies are able to collect nearly arbitrary data on all U.S. citizens and participate in propaganda?