I doubt it has to do with the EU institutions but rather the convenient location at the rhine valley. The section of the rhine valley between Mannheim (Germany) and Basel (Switzerland) is one of the busiest train routes in Europe for freight and passengers.