>>12261026They didn't free the slaves just prior to starting the war.
The common northerner was mostly motivated to defend black people, half the army would have dissipated had the South first freed the slaves - went to war - smashed the North - and then possibly could have been in a position to recapture the slaves or send them back to Africa.