Labor unions in the 1800s

What economic, social, and philosophical factors
contributed to the formation of Labor unions in the 1800s?