It's possible that your Gmail account was compromised. It's also possible that a shared contact was compromised and your address was selected as the From: to conceal who was actually hacked.
https://www.emailquestions.com/threads/how-to-get-back-a-hacked-gmail-account.6398/