It depends on a lot on where you were, but there are places that literally fired women when they got married.
https://www.irishcentral.com/news/how-things-have-changed-te...This has changed, but it reveals a lot. It also might relate to why it's so hard to find teachers for the price government is accustomed to paying - if you were a well-educated woman in the 1950's you had far fewer options (aka bargaining power) than you do today, and teaching was likely to be one of the few options with a bit of prestige and mental stimulation available to you.
It's true that women weren't FORCED to not work, but to suggest that they didn't face a strong disadvantage is disingenuous. Hell, it's still a rampant problem - how many tech bros get off an interview and then say "ah but she's 32, she'll want to take maternity soon". This is a good reason for making maternity and paternity leave equal, incidentally...
https://www.nytimes.com/2018/06/26/podcasts/the-daily/pregna...
Though for all that, my wife stays home with our kid by choice. She went back to work when our daughter was 6 months old, and after six months of barely seeing her outside of the weekends she just couldn't bear it (I didn't much like it either). The only reason we can do that is because I have a good paying job in tech making something over the 90th percentile of incomes in my country. I wish other people had that choice. Hell, I wish I had that choice. But few do.