The whole world today is based on countries and their respective borders. When you want to travel between countries anywhere in the world you must have valid passport, to prove your identity. Countries can issiue or choose not to issue visa, so not everyone can pass every border. Things are working this way, and have worked this way for very long time. A very basic principle. Why is that? Many reasons, and the main is national security.<p>EU opened borders between their own countries. This is a good thing, it allows free travel and flow of products and money between EU countries. But EU still borders countries that are not in EU.<p>Now they are allowing everyone without valid documents to pass EU border in Greece and Turkey. You just need to say that you are a Syrian refugee and that you are going to Germany. Sane countries like Poland and Hungary are only reacting to this insane situation. Racism is not involved here, only logic.