While the army was at war, many jobs opened up that otherwise would not have. The Army took up many workers, and the arms industry expanded.
The south, in the meantime, was stagnating. Traditional employment in the south was working to capacity and the north looked like worthwhile greener pastures.