You hit the nail squarely on the head. In days past when people retired they'd still help raise kids or look after households. When we moved past requiring that sort of thing, we left the elderly without engagement.
I'm not sure what the solution is, but perhaps as a society we could be more intentional about creating roles where the elderly can still help and feel useful, but also have flexibility and a more relaxed lifestyle.