Apple does not tie the local account to the cloud account the same way. On a Mac you create a local account and you can (and almost certainly will) create a cloud account to link to it. But they are separate accounts. In fact I’m pretty sure Apple blocks you from setting the passwords the same on both, presumably with the intent of reminding you that they are not the same entity.