Why does iCloud ask for my iPhone's passcode when signing in on OS X
It just seems to be an extra security measure, so that somebody who steals your iphone in an unlocked state can not quickly use the 2FA to change your iCloud account.