why would families allow their children to work in factories at a young age?

They needed the money.