my valorant account email got changed, how is that possible?

so yesterday i got an email that my riot account email got changed. I dunno how this happened. I quickly changed my email id password. And went to riot page to retreive my account. I successfully got my account back, and i enabled 2fa also and changed riot account password. I just wanna know how did someone change my password and email and got access to my account. Spyware?? is it because i downloaded something wrong from the internet?? I need a clue so i can remove it from my pc.
Was this page helpful?