That’s the exact opposite of reality. They worked 12-16 hour shifts for unlivable wages, crammed several families per room, and lived without any of the infrastructure that makes high densities livable like modern sewer systems. It was the age of cholera and truly awful living conditions.
People didn’t move into the cities because it was better for them but because industrialization forced them to. Peasants didn’t start asking for worker’s rights until the industrial revolution because it was so much worse than working conditions in subsistence farming.