From the first paragraph of the Mississippi declaration of cause of secession:
Our position is thoroughly identified with the institution of slavery-- the greatest material interest of the world. Its labor supplies the product which constitutes by far the largest and most important portions of commerce of the earth. These products are peculiar to the climate verging on the tropical regions, and by an imperious law of nature, none but the black race can bear exposure to the tropical sun. These products have become necessities of the world, and a blow at slavery is a blow at commerce and civilization. That blow has been long aimed at the institution, and was at the point of reaching its consummation. There was no choice left us but submission to the mandates of abolition, or a dissolution of the Union, whose principles had been subverted to work out our ruin. That we do not overstate the dangers to our institution, a reference to a few facts will sufficiently prove.
You should read the declarations of succession which clearly state that slavery was the reason.
https://lemmy.world/comment/11343369
Tldr:
The slave states lied to make themselves sound better.
Edit:
Listening to the slave states for why the civil war started is like asking a trumpet at his rally what 1/6 was.
They aren’t going to give you an answer based in reality, so why are we listening to them?
From the first paragraph of the Mississippi declaration of cause of secession:
https://www.battlefields.org/learn/primary-sources/secession-acts-thirteen-confederate-states
But sure, they were lying about it in their official documentation.