Why are the country code prefixes as they are?

Related wiki page : [Callsign Databases]