My read on Germany specifically is that it's less about Russian invasion worries and more about domestic economic politics. The bases are important economically to the towns/regions they're in, and closing them is unpopular in those areas, similar to how choosing when/if to close US bases in the US is controversial (https://www.everycrsreport.com/reports/R45705.html).