Many shots seem to have “off-target” benefits, such as lowering the risk of dementia, studies have found.