Cognitive impairment has long been associated with inflammation in older adults: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3390758/
As well as the general population where illness is involved: https://psychcentral.com/news/2019/12/01/inflammation-linked...
And it contributes to a variety of disorders (potentially almost all of them). The research here is pretty broad, Google if interested. Notably, depression, anxiety and other behavior impacting problems are among the aforementioned disorders.
We know that exercise levels and diet can lower or increase inflammation.
So we have this sort of rare magic bullet when it comes to health, cognition and aging. Lowering inflammation won't fix everything of course, but it will lower your risk of pretty much everything.
And yet this truth is less a part of the zeitgeist than you'd expect, given it's impact. Maybe because it's simple but not easy to change your lifestyle. Or more importantly, the lifestyles of a population. Especially when part of the problem is financial insecurity.