Ok, it's good that these sentiments were included, but don't you find it a bit alarming that the culture made this necessary? Oh, and doesn't seem to have made much impact in the intervening 1300 years.Regardless of the behaviour of Muslims, the protection of female babies was baked into the initial stages of Islam where the prophet Mohammed tackled the habit of burying female babies. There is also a lot of religious importance placed on protecting female children. Whether or not that translates into actions is debatable but I can't think of other religions where that is documented.
However, I'm biased. I have a one and a half year old daughter who already shows the potential to be more intelligent than me (shut it. I know that's not difficult) and cannot even comprehend how someone can bring themselves to terminate such an opportunity for the world. I am, even now, beginning to accept that I'm storing up a world of pain for me later, but such is life.
I certainly don't get the total ignorance of only wanting to bring males into the world. By eliminating the females, you're going to make your pride and joy pretty miserable in his later life. As is now illustrated by the present situation in India.
I've only one explanation. Total ignorance.