Original: Travelling to and from West Berlin by road or train always required passing through East German border checks, since West Berlin was an enclave surrounded by East Germany and East Berlin.
Simplified: West Berlin was called "Berlin (West)" by the West Germany government, and usually by the East German government. The east German spelling suggested that West Berlin was not really part of "Berlin" as a whole, but a separate place.