Why did people create unions during the late 1800s?

1.to improve working conditions for industrial workers
2.to reduce debt and improve conditions for sharecroppers
3.to fund inventors searching for new inventions
4.to prevent railroads from declaring bankruptcy

1. to improve working conditions for industrial workers