There’s definitely a random element imo, I’ve volunteered for years with people who have dementia, it’s such a huge variation of different lifestyles who’ve developed that condition. I’ve seen former athletes, dancers, sometimes even professionals.
It seems like a mix of genetic and lifestyle issues that impact upon how we age.