Mourning and tears can lead to joy and comfort through God. While sadness is normally avoided, sorrow and tears are valuable when suffered for the sake of God and others. Those who mourn will be comforted, as God is the God of all comfort who comforts people in their troubles so they can comfort others. Mourning makes joy by bringing people closer to God, who can't be won through other means but through dedicated sorrow for others.