Facebook has a track record of abusing security vulnerabilities to snoop up information about other apps installed on your phone. It might be as simple as Instagram reading leftover temp files created by the TikTok app.