How come there are so many smart people in Germany from history?

Einstein,Gauss,Marx, Nietzsche, Bach, Beethoven,Zimmer,Heisenberg,etc.

Germans practically make up half of a mathematics textbook (With Euler),Was the German education system that good?