Anecdotally, Tesla Berlin pays in the range 50-60k/year in Berlin (for SWE roles) - I am quite sure they are able to pay muuuch more.
So either are workers in Berlin less than half as effective as Tesla's other offices or Berliners accepts a much lower pay.
GDP is a number - If the Berliner kebab was priced at 12 EUR instead of 6 EUR, then they could afford paying double the salary - The rest of the world is about to add zeroes to everything. Why wouldn't Berlin?
My thinking is that this is Europeans focussing on "budget rather than profitting".