I think this is has been around longer than TikTok, but quite likely that helped popularize it in its current form and make it become trendy.
Hip hop has been pitching up vocal (samples) for a long time.
Nightcore has apparently existed for 20 years and become more popular in recent years, like when I first heard of it. It uses pitched up/sped up vocals as a key part of the sound.