Your Apple Id is used for everything Apple related.
To set up your iPhone, you have to log into your Apple account. Macs don't care as much.
If you use "Log In With Apple" then you'll lose that. And if you've decided to use the terrible Passkeys idea, you're locked out of that too.