These are just IATA (International Air Transport Association) codes. They are used in aviation to identify and differentiate airports. That’s why a Krakow J. Paul II Balice Airport to Mexico City Benito Juarez Airport flight would often be abbreviated as a KRK to MEX flight.