uh, they were following orders. They were soldiers. To think that every Civil War Confederate soldier supported slavery is asinine. Most by all records did not support it and did not own slaves. They were fighting for their right for self determination. They were fighting for their right to secede from a Union they perceived as being controlled by rich Northern states at the expense of poor Southern states.
Grow up.
By the same token, not all Union soldiers who died were intentionally fighting to destroy slavery. A good many, perhaps most, at least in the early days of the war, were strongly against doing any such thing.
The fact remains that if the Confederacy had prevailed slavery would have lasted a good deal longer.
BTW, you’re obviously confused about the relative wealth of states before the War. Average per capita (white) income was a good deal higher in the South than the North.