I'm pretty sure Google uses shared keychain access.
Since iPhone OS 3.0 it has been possible to share data between a family of applications. This can provide a better user experience if you follow the common path of free/premium applications or if you have a set of related applications that need to share some common account settings.
https://developer.apple.com/documentation/security/keychain_...