I'm still spitballing here, but I speculate it's because caffeine increases calorie consumption*, reducing diabetes risk. Diabetes is a major risk factor for dementia.
*calorie expenditure
*calorie expenditure
If that is correct, why?
I thought higher calorie intake leads to weight gain which increases diabetes risk.