The south made the mistake of attacking Sumter, lost their slavery as a result. No one invaded to get rid of slavery, it was a fringe benefit of the war.
“No one invaded to get rid of slavery....”
You’re right. They invaded because a petulant little man threw a hissy fit because he saw his revenues disappearing before his very eyes. It was only later, to score political points, and to create an excuse and justification for starting a bloody war, so he’d look good to posterity and historians, that that same petulant little man decided that the invasion was, after all, to free the slaves.
Lincoln was a fraud.