how did the industrial revolution lead to socialism
Answers
Working inside with varying degrees of shelter from the elements, cold, heat, snow, etc. is a big improvement over outside work, people have been making that choice as soon as they could throughout human history.
Getting paid weekly for your work instead of in food and rent, only at harvest times or sale of livestock/firewood/charcoal/meat, and rarely in cash wages that meant you could spend it anywhere or accumulate it for savings was a huge difference.
Factories aren’t the neat division of a few managers and hordes of equal workers. In reality there are many levels of workers, particularly from unskilled novices to highly skilled workers who control key processes and equipment who are highly paid, usually, and can’t be fired because of their value, but generally having started at the factory as an unskilled novice.
all the above reasons are resonsible for leading industrial revolution to socialism