Why did the union win the civil war? Explain

Why did the union win the civil war? Explain