The Jews were persecuted to provide a political rallying point for the Nazis.
That they used them as a means to unite Germany (as a whipping boy for Germany losing WW1), does not explain the determination to wipe them out even as late as 1944-45 when the war was over.