You are conflating the alignment based on a subset of shared goals with shared origins. Capitalists supported "some" of the things early Nazi Germany was doing, that doesn't mean the Nazi purpose was to combat socialism (although, if combatting socialism furthered their other goals, then they wasted no time in doing that)