Be kinder to the oldies and unwell

Was it official wisdom or economic expediency that we want our old and sick to work till they die on the job? There compelling economic reasons to do so, that the old and sick should not become a liability to anyone, to be financially independent and dignified. There are also compelling and compassionate reasons not to allow the old and sick to work when they are unhappy to do so or unable to do