People wouldn't have sent their kids to the factories if life was better on the farm. I doubt that many people at the time were aware of the long term effects of smoke inhalation.
My understanding is that the UK experienced a population boom due to increased farming productivity due to potatoes. The resulting population boom meant that there where more farmers than farms, so they had to go somewhere, and the only option was cities.