It sounds like those same "spying features" — e.g. examining server logs — would also be useful as *counter-*spying features, to verify that TikTok is not being used as a weapon by the genocidal regime currently in power in China.
Given that the genocidal regime has engaged in illegal harassment, assault, and espionage against people of Chinese ethnicity residing in the US, Canada, and other nations, that seems like a pretty good idea, really! The US government has a legitimate interest in protecting its citizens of Chinese descent from lawless abuse by a foreign power.