Hmm I don't know actually, but now I'm curious too. From quick search:
As the newspaper Handelsblatt explains, “angst about potential surveillance is rooted in Germany’s past.” The combined legacy of the Nazi Gestapo and the East German Stasi are thought to be part of the reason Germany has been a pioneer in data protection — with legislation dating back to the 1970’s.
https://www.codastory.com/surveillance-and-control/coronavirus-germany-privacy/