A socialist economy is a system of production where goods and services are produced directly for use, in contrast to a capitalist economic system, where goods and services are produced to generate profit (and therefore indirectly for use). "Production under socialism would be directly and solely for use.
Because the working conditions were terrible.
In the days of the Industrial Revolution, the workday was abusive and inhuman, as it ranged from 10, 12 or even 18 hours of work. Which meant that employees simply did not have a life outside the factory environment.
Other than that, in a pre-labor time, in the first factories the working conditions were really unhealthy, especially because of the lack of safety care, accidents were common, with mutilations of people, among other things.