China has rules that apply to all social media apps operating there, including rules on data storage, data sharing, and moderation. Those applications are not willing to follow those rules, and so aren't allowed in China. TikTok is willing to follow those rules, so is allowed.