the UK's ISO 3166 alpha-2 is technically GB (because when thinking up codes they generally took out words like "republic" or "kingdom")

"UK" is actually just exceptionally reserved upon the request of the UK but isn't technically assigned to the United Kingdom