Why was the North willing to compromise with the South on slavery?

The North wanted the South to join the new government.