While the direction of causality is (usually) hard to determine based on observational data, given that we observe a similar effect in individuals with hearing impairments and, AFAIR, in people with limited mobility, it seems that decreased sensory stimulation plays a role in the development of some dementias. There is also a recent pilot study about a positive effect of olfactory stimulation [1].
https://www.frontiersin.org/articles/10.3389/fnins.2023.1200...