According to Hitler, the Red in the Nazi flag represents Socialism, so basically he lifted it from the Communists.
Ah, well that’s perfect for Antifa too ... in spite of their claims to be pure anarchists.