Why do you think it was written in 1863(after two years of fighting in the Civil War)?

I assume by "it" you mean the Emancipation Proclamation.

The main reason the North and South fought was over secession, not slavery. Check this site for more information.

http://en.wikipedia.org/wiki/Emancipation_Proclamation