This was a pretty longstanding pattern, up until the industrial revolution.
The IR really screwed with family life for many people, and it led to some pretty shocking awful conditions for women and children in particular.
That being said, there were many areas where the home unit continued to be a means of production, particularly in rural areas, but also among the artisan class.
In some ways the middle class housewife was the last bastion of the home as production unit, where the husband had been sent out to sell his labour for the benefit of the capitalist and the home was often an expense rather than a source of productive wealth.
The housewife, where there was one, in this scenario worked for the home unit, with the full benefit of her labour went to her family or sometimes the local community, rather than to benefit an employer.
One of the interesting things that happened in the early 20th century was an increasing recognition that women needed protections because this left them financially vulnerable, and there were some attempts to provide this, through for example mother's allowances, widow's benefits, and in some places divorce laws that gave women more entitlement to support.
For a variety of reasons this fell out of favour as an approach, an important one being increasing mechanization in the home, and the real lack of productive capacity for most people in their homes, which meant that domestic work was less of an economic contribution than it had been, and was also less satisfying. But it should never be overlooked that a really significant reason is that it was part of the inexorable creep of captialism, trying to bring every part of human life under it's wings. With the large-scale entry of women into the workforce it not only increased the number of workers earning for capital, it meant that childcare, and sometimes other domestic tasks too, became part of the market - something to be bought and sold.
But in any case - when the home was a productive unit, or the farm, women tended to keep their infants with them much of the time, and even quite small children worked in the shop or on the land with their parents.