Why a code and then a passkey?
They prove two different things. The code proves the phone number is yours. The passkey proves it is you on your own phone, with the face, fingerprint or screen lock you already use, and it also locks the keys to your files. Together they mean no password to remember or to reuse.