The 2FA codes sent was possibly when they made attempts to reset the Twitter Account's Password. Twitter sends Authentication Codes for that as well if you've 2FA enabled on your account.