Every bank in Germany needs to register a personal tax identification number for every bank account according to the guidelines of the OECD.
This applies to all bank accounts opened since 2016. More information here: https://de.wikipedia.org/wiki/Common_Reporting_Standard