Google sends verification code when we create our account ,google never sends any code by itself .But if you got a google verification code without requesting it, maybe your account is in danger and someone is trying to enter your account. Many hackers and cybercriminals do it to get personal information and other data for their personal benefits.
Read also:
https://theomnibuzz.com/google-voice-scam-how-to-recognize-and-avoid-it/