"... a coal miner ... was 'puzzled by the denial of race and nation implicit in Marxism. Though I was interested in the betterment of the workingman's plight, I rejected [Marxism] unconditionally. I often asked myself why socialism had to be tied up internationalism--why it could not work as well or better in conjunction with nationalism.' A railroad worker concurred, 'I shuddered to the thought of Germany in the grip of Bolshevism. The slogan "Workers of the World Unite!" made no sense to me. At the same time, however, National Socialism, with its promise of a community ... barring all class struggle, attracted me profoundly.' A third work wrote that he embraced the Nazis because of their 'uncompromising will to stamp out the class struggle, snobberies of caste and party hatreds. The movement bore the true message of socialism to the German workingman.'"
They hated the communist because of their internationalism, not their socialist policies.
Source: Hitler, A.; transl. Norman Cameron, R. H. Stevens; intro. H. R. Trevor-Roper (2000). "March 24, 1942". Hitlers Table Talk, 19411944: His Private Conversations. Enigma Books. pp. 162163.
Hitler was against internationalism, be cause he asserted the Jewish bankers controlled the financing of the same.