Apps can scan the device for installed packages that have opted to be “visible”. This is particularly common for apps that attempt to prevent rooted users from using the app. I would not be surprised if the iOS platform has similar functionality.
I’m not a fan of TikTok but this seems like it’s not a big deal.