Lincoln did think slavery was evil,But that is NOT why he wrote the Emancipation Proclamation. He wrote it during the height of the Civil war hoping to start an insurrection with the slaves in the south.
You see not all slave states seceded in 1861 Maryland and Missouri stayed in the Union.