The Confederacy's main goal was to keep the right to own slaves (Ofc now racist MAGAts will claim it was about "sTaTEs RiGhTs") because slave labor was (and still is, unfortunately) the cheapest labor around and having a drive to get the cheapest most exploited labor you can is what happens with capitalism.
Nazi Germany's rise was fueled by widespread misery and discontent among the German populace because of Capitalism-based 'war reparations' like the burdensome payments mandated by the Treaty of Versailles, which crippled the economy and fueled resentment that the Nazis could exploit. Had it not been for capitalism, there might have been little desire to ruthlessly pursue monetary compensation like that and WWII might not have ever happened.