Mr. Pipes,
Unions formed because a large number of people with no power wanted to wrest some sort of control from a very powerful person who was treating them all badly. Whilst they worked together by striking, they were able to hurt the factory owners and negotiate better pay, holidays etc...