Again, US social media enterprise refused to operate in China because they were unable to comply with existing local laws.
China did not pass a law and force a US company out retroactively. Tiktok complies with all existing US laws, including the law that requires US companies to provide data to the government when there is a warrant. https://en.wikipedia.org/wiki/CLOUD_Act