Then two women who were harlots came to the king and stood before him.
Should not the harlots have been killed by law? However, far from executing them, Solomon judged between them!
But if this charge is true, that the girl was not found a virgin, then they shall bring out the girl to the doorway of her father's house, and the men of her city shall stone her to death because she has committed an act of folly in Israel by playing the harlot in her father's house; thus you shall purge the evil from among you. Deut 22:20, 21
Therefore, why weren't the harlots executed under the law?