All caused by a few trumped up male judges drunk on their own sense of importance of course.
Anything but!
These Judges were a reflection of society at the time.
Most women who were lesbian certainly weren't public about it, and I would say most members of the public would think a lesbian bringing up children was totally unacceptable.
So although terrible what these women and their children suffered, the upside was that it meant a more public discussion, and as it were, consciousness raising, that just because a woman was sexually attracted to another woman, it didnt mean she couldn't be a good and caring mother.
I think also, although about lesbians, what many men, not just the Judges couldn't stand, was that it seemed that women were more than able to be a good parent on their own, live their own life, and not need a man, whether father or husband to "take care of her".
It is hard to believe but within the life time of some of us, women living independently has now become normal, but then wasn't. Or more likely to be some "sad old spinster" having to live her "unfulfilled" live with men to cater to!
Just had really old fashioned and patriachal it all was, worth remembering that the "trouser suit" was thought to be a revolution. 
So although most of the judgemental attitudes were about women have a sexuality autonomous of men, it was also about not wanting women to be seen to be able to be independent of men.