Two-factor authentication: why was I asked for my iPhone passcode after I entered the verification code?
Apple does not hold encryption keys to certain types of protected data held in iCloud such as passwords, health and home. You need to enter your passcode to allow this new device to decrypt your data.