Answer: Lincoln was giving the Union an additional, stronger reason for fighting and winning the war. He was also adding another source of soldiers for the Union Army, and blocking foreign powers from allying with the Confederacy.
Lincoln didn't free slaves in all the United States because he wanted to retain the loyalty of some states which had slavery but were loyal to the Union.