The first actual German university on this list is #24, the ones before are research institutes.
https://en.wikipedia.org/wiki/Fraunhofer_Society
https://en.wikipedia.org/wiki/Fraunhofer_Society
The research absolutely impacts teaching to a great extent. We are only humans after all, and I don't have a separate brain for teaching and for research. If you separate your best researchers in research institutes, you're going to seriously limit the flow of knowledge to your bachelor and master students. And those students are your future researchers.