My friend is from Kyrgyzstan (he has citizenship) and works in Turkey. He wanted to visit Batumi, a city in Georgia. Georgia doesn't ask visas from citizens of Kyrgyzstan. Because my friend lives in Turkey, he wanted to cross the border from the mainland. However, Turkish officials denied exit for my friend who is not a citizen of Turkey. The official explained that Georgia will deny entry for my friend and that he may enter only by air transport.
To me this situation seems dumb. Does a foreign citizen have always the right to exit a country unless they committed a crime? How can an official from another country can deny exit to a citizen of another country? Or are there some nuances?