To conquer over the death of a loved one. This is what is said in Ecclesiastes 3:11, "He has made everything beautiful in its time." Rabbi Berechiah in the name of Rabbi Jonathan says, "Do not read (the word) 'shem' (name), but rather 'olam' (world). For God has placed the world in their hearts, and He has also placed the love of children in the hearts of their parents."
It is like a king who had two sons, one older and one younger. The older was respected, while the younger was troublesome. Nevertheless, the king loved the younger more than the older. Another explanation Rabbi Jonathan gives is that God placed the fear of the angel of death in their hearts.
Rav Berya in the name of Rabbi Samuel says, "And God saw all that He had made, and behold, it was very good" (Genesis 1:31). This refers to the evil inclination. For if it weren't for the evil inclination, a man would not marry a woman, nor would he bear children, and the world would not exist nor would homes be built. Another explanation is that God concealed from humans the day of death and the day of judgment. David said, "Because You have hidden them from me, I sing about You." About the death of a loved one.