Alright, let's go to the Thought Bubble.
You'll notice from this map that not all the states that held slaves were part of the Confederacy. The border states of Kentucky, Missouri, Delaware, and Maryland allowed slavery and never left the United States. All of these border states were critical to the Union. Maryland was north of the nation's capital in Washington D.C. Kentucky controlled the Ohio River. Missouri was the gateway to the west. Delaware actually wasn't that important. So none of that should be particularly controversial, unless you're from Delaware, but the causes of the war, that's another story.
The Civil War was about slavery. Actual historians will back me up on this, like David Goldfield who wrote, "Both northerners and southerners recognized slavery as the immediate cause of the Civil War." Also, Lincoln said in his second Inaugural Address, "One-eighth of the whole population were colored slaves not distributed generally over the union but localized in the southern part of it. These slaves constituted a peculiar and powerful interest. All knew that this interest was, somehow, the cause of the war."
That said, in comments lots of people will be like, "The war was about agriculture versus industry!" or "the states' rights to protect themselves from the tyranny of a big federal government!" But if it were really about that, the Civil War would've started during the Nullification Crisis in the 1830s when, as I'm sure you'll remember, Andrew Jackson said that South Carolina couldn't declare a federal tariff null in their state. Why didn't that cause the Civil War?
The Confederate government passed the first conscription act in American history, implemented national taxes, created a national currency, and had a government bureaucracy of about seventy thousand people - more than the federal bureaucracy in Washington D.C.
Thanks Thought Bubble.
That said, in the beginning of the war, Lincoln deliberately tried to downplay the slavery angle, arguing that the war was only about preserving the Union. But the war was also about religion, for both sides. As David Goldfield put it, "In protecting the revolutionary ideals, Northerners would preserve God's plan to extend democracy and Christianity across an unbroken continent and around the world. Southerners welcomed a war to create a nation more perfect in its fealty to God than the one that they had left."
But it's also important to remember that regular soldiers often had more prosaic reasons for going off to fight, as you will eventually learn when you are forced to read The Red Badge of Courage. Goldfield tells the story of one Alabamian who enlisted only after his girlfriend mailed him a dress and told him he should start wearing it if he wasn't willing to fight. And for northerners, union, religion, and an end to slavery mixed together to form a potent rationale for war. It's summed up nicely by Julia Ward Howe's words to the song that would become famous as "The Battle Hymn of the Republic": "As he died to make men holy, let us die to make men free." You thought I was going to sing, but you were wrong.