If you weren't logging into anything that triggered the 2FA message. It might be someone else trying to access one of your accounts for whatever it was or just one of the many spoofed scams out there. It is usually fairly obvious where these codes are coming from when they are legit.