It would be because the world war 2.
After the world war 2, Germany's territory was divided into two block with different Ideology, the East German with communism ideology and the West German with the liberalist Ideology. They both build a wall called the Berlin wall to separate the two territories