In some cases, right after a user gets created or autocreated, code like CentralAuthUser::getInstance( $user )->getId() will return 0 (ie. see the user as unattached, on that wiki even though it's definitely attached).
Two examples are:
T379909: Define where to add code that needs to run after a new central user has been created
T380042: RuntimeException: Global user does not have ID '0'.
There's a separate getPrimaryInstance method, but it's not very clear when it should be needed - CentralAuthUser::loadState() tries to load from the primary anyway when there have been recent DB changes. And sometimes using the primary is not an option - in the case of T379909 the lookup is happening on a GET request (in the GET-after-POST pattern of finishing user signup).