It has just been said that she did not eat, but it seems that after the comfort that her husband gave her, she must have said to herself, ‘Yes I shouldn't come before the Lord in mourning, even though I am grieved at not having a Levite boy to give to the service of the Lord. I have got a very loving and supportive husband, and I shouldn't grieve unduly.
It's a wonderful prayer to read repeatedly and just quietly to yourself, because you can see she is a woman of prayer, and she is accustomed to praying personally to God who she knows and relates to. So she prays her unselfish prayer.