What I'm reporting here seems incredibly suspicious, so I could be spectacularly wrong because I misunderstood something, in which case I apologize.
Global uers have a global ID assigned by CentralAuth, and this is stored in the globaluser.gu_id field, an autoincrement primary key. CentralAuth has an option to delete a global account from Special:CentralAuth [side note: I couldn't find a single line of documentation about this feature]. When that happens, the row is deleted entirely from the table:
$centralDB->delete( 'globaluser', [ 'gu_name' => $this->mName ], __METHOD__ );
But then this mean that if the autoincrement value is reset for whatever reason (and this is a concrete possibility for InnoDB tables until MySQL version 8, AFAICS; no idea about other DBMSs), the ID of a deleted user could be reassigned to another global user.
This starts becoming a problem when someone uses global IDs to univocally identify global user accounts, which is easily made possible by CentralIdLookup (docs). It means that effectively, a record somewhere in MediaWiki which was meant to belong to global user X could first become orphan, and then get reassigned to user Y. And as it stands, we're only relying on the DBMS being sufficiently clever to avoid that.
Instead, I'm wondering if the "delete global account" feature should be reimplemented as a soft deletion, with the globaluser table having an additional gu_deleted field (or similar).