Factors include:
-wrong beliefs
-hate
Germans believed Jews were responsible of their losses during the war, they also hated and destroyed any religious group that didn't go with their ideas. That led to the prosecution of different groups.
Have a nice day! :)