First you say America did not fight a war to set slaves free, then you said the Union fought the war to accomplish freeing slaves from bondage. Fascinating that in the space of 3 sentences you manage to completely contradict yourself. 

The Union did not start the war wanting to free slaves, they fought over secession, to preserve the Union. It was 2 years of war before Lincoln signed the Emancipation Proclamation, thus adding on the goal of freeing slaves to the original goal of preserving the union.