The commandment to honor parents was given to ensure that the elderly, although they may not feel wanted by family or society, are still given their appropriate reward.