The working conditions were very poor in factories in the North, and so were the conditions for slaves in the South. The factory workers were putting their wellbeing at risk with the unsupervised machines and the poor living conditions. Same goes for slavery.
Hope this helps!