It's not like the Germans had any monopoly on casual racism back then - consider the Dreyfus Affair, which occurred at the peak of La Belle Époque France. Of course Germany was where these attitudes had been festering for a long time due to a generally authoritarian social environment (which went hand-in-hand with opposition to bourgeois modernity), and where they were taken to extremes.