The patriarchal society....oldest adult male...head honcho...younger adult males, esp firstborn next...male children next stop on the totem pole...then adult women...female child the lowest in human terms. Whatever the story the female child had no rights. All they were to do is arrive at child bearing years and birth babies preferably male. In this story the female child never got to that highlight in her life.
So what you're saying is that the Muslims have it right regarding their view of women. It's a godly "scriptural" view.