Basically there are "на-words" and "в-words" in Russian. It is not only about countries. There are some rules to put these words in groups and memorize but they aren't absolute and aren't always...