Elkanah her husband said to her, Do what seems you good; wait until you have weaned him; only Yahweh establish his word. So the woman waited and nursed her son, until she weaned him.
So the scene is set the man living in polygamy, two wives. One he loved more than the other. One had many children, but the one he really loved could not have any children.