My childhood dog is still alive at my parents' house but has dementia and does not remember me, and I keep visiting anyway even though it feels pointless.
More people experience this than they realize.
Continuing relationships with cognitively diminished animals serves our need for continuity more than their wellbeing.
If this sounds familiar, the Library can help you find the bigger picture.