This was largely for relatively privileged people. Most families the mother worked as a teacher, nurse, domestic, secretary, nanny, etc.
Working a minimum wage could buy a starter home "back then". It now can hardly pay rent, and starter homes essentially no longer exist, even if someone wanted one.