You fail to make necessary distinctions.
We separated from Great Britain because King George III and Parliament had become tyrants.
The Confederacy tried to separate from, and declared and launched war upon, the Union, in the name of their claim to a “right” to tyrannize others, and to expand that tyranny into the states that had outlawed such tyranny.
Big difference. Which of course is a major reason for the completely different results obtained.
The American Revolution had a moral basis. The Confederacy had an immoral basis. End of story.
Only in the minds of the Colonists. The British government believed themselves to be perfectly reasonable.