Lincoln stated the goal of the war was not about slavery at all. He made that very clear.
14 paragraphs down, if you want to skip to the point at hand.
Oration in Memory of Abraham Lincoln Frederick Douglass | April 14, 1876
He wasn't speaking for the Confederacy.