"Fairy tales" ("Marchen" - folk takes - ) are the distilled wisdom of the human race, and like all good stories they entertain and educate.
The original, unedited ones had some nasty stuff in them. For example, in "Cinderella" the cruel, greedy and envious step-sisters cut off parts of their feet to make them fit into the slippers.
Since kids pretty much see things as black-and-white (either all-good or all-bad) that's how folk tales were structured.
When it came to parents, there was the Good or Bad father, and the Good or Bad Mother. That's pretty much it.
The Good Fathers were often portrayed as Kings, that is, patriarchs.
The Bad Fathers were portrayed as weak or absent (say, MGTOW) or sexual molesters of their own daughters (and by extension other men's daughters). - the "PUAs."
Women, however, are portrayed as being far worse than men. At their worse they're witches, cannibals and murderers, motivated by greed, hate and envy (which is why in the story of the Garden of Eden in the book of Genesis women are portrayed as envious creatures who wish to rule men). The stepmothers are the worse.
At their best they are loving mothers and loyal wives - man pleasers who are aware of their strengths and weaknesses (what the Greeks called Sophrosyne, which is often mistranslated these days as humility.
Mythologically women are portrayed as either nurturers or destroyers. That is, if they don't nurture then they destroy.
Take the famous "Snow White." The Evil Queen wants to murder her out of sheer envy. "Hansel and Gretel"? The weak father lets the evil mother send her children out to die. "Cinderella"? Her greedy, cruel stepmother and step-sisters abuse and neglect Cinderella and are motivated by greed and envy.
The lesson of these tales is that probably the worst thing for children is to have a weak or absent father, and a cruel, sadistic, greedy, envious mother who sometimes try to murder their children. The implication is that when men are weak or absent the true nature of women is to be sadistic, cruel, envious and greedy, ones who wish to murder children. At their best they are, as the Bible says, "helpmeets."
"Often men fantasize women as nurturers who are in fact predators" - John Clayton