Isn’t this hypocrisy?
The killing of a child is justified if someone fears that that child will not obey Allah in the future:
[18.74] So they went on until, when they met a boy, he slew him. (Musa) said: Have you slain an innocent person otherwise than for manslaughter? Certainly you have done an evil thing.
[18.75] He said: Did I not say to you that you will not be able to have patience with me?
[18.76] He said: If I ask you about anything after this, keep me not in your company; indeed you shall have (then) found an excuse in my case.
[18.77] So they went on until when they came to the people of a town, they asked them for food, but they refused to entertain them as guests. Then they found in it a wall which was on the point of falling, so he put it into a right state. (Musa) said: If you had pleased, you might certainly have taken a recompense for it.
[18.78] He said: This shall be separation between me and you; now I will inform you of the significance of that with which you could not have patience.
[18.79] As for the boat, it belonged to (some) poor men who worked on the river and I wished that I should damage it, and there was behind them a king who seized every boat by force.
[18.80] And as for the boy, his parents were believers and we feared lest he should make disobedience and ingratitude to come upon them:
[18.81] So we desired that their Lord might give them in his place one better than him in purity and nearer to having compassion.
The killing of the boy was justified by the desire to protect the honour of his parents. He was punished with death for his non-existent crime which he had not committed. He was made guilty of a potential crime which existed only as a possibility in his future life! Only Islam could come up with this sort of nonsense. So it comes as no surprise that honour killings are rife in the Islam culture. Parents or relatives can always appeal to this passage to justify their honour killings.