Because they were rivals, socialist vs communist. Both were totally bad, but close enough to be similar. Which I’m sure you know of course.
But the modern lie that Nazi means somehow “right wing” (whatever the he!! “right wing” means anyway).
All true - Hitler was an animal rights loving non smoking environmentalist and they were into all sorts of dubious innovations.