Two keys, different roles
A passkey uses a pair of related cryptographic keys. The service keeps a public key associated with an account. The private key remains with the authenticator, which may be managed by a device or credential provider. During sign-in, the authenticator produces a proof that the service can check.
The private key is not handed to the website. This distinction reduces the value of stealing a service’s credential database: a stored public key does not itself provide the private proof needed to sign in.
Recovery belongs in the picture
Some passkeys synchronize through a credential provider; others remain on particular hardware. Availability and recovery depend on that arrangement and the service’s rules. Apple’s documentation describes its own synchronization and recovery system. Check the relevant provider’s instructions rather than assuming every passkey behaves identically.
Further reading: Apple: passkey security. General educational information.