That Marxist Communism had taken hold of Russia largely through the efforts of outsiders was not lost on the Nazis and their distrust and fear of anyone not truly German was entirely sensible. That among these outsiders Jews played an inordinately large role was a commonly understood meme of the day. (And when looking at the Bolshevik leadership and financial backers, it is an unassailable fact, though it's currently heresy to say so.) German Jews during the party's rise were also an inordinately powerful group in German industry, finance, and media. Given the context, it was not irrational to seek to remove a minority group with questionable loyalties from such positions and prevent them from retaking them.
Throw in a Weimar period of social degeneracy and economic upheaval along with the rest of the world laying blame upon your people as being solely responsible for one of the greatest calamities experienced by western civilization and a nationalistic party that emphasized the inherent strength and value of the nation's ethnic stock was exactly what the German people needed to regain their dignity. The only lesson to be learned from the Nazis is that war should be avoided at all costs. The corollary being that if you are to fight a war, make sure you will prevail else your nation will be raped and split up and your people will be treated for the next century as though they were the greatest evil that has ever been visited upon the Earth. (And no one will learn anything from it.)