They didn't.
The only time they made a major retreat was when they overstretched and Kyiv offensive that was expected to be quick failed.
They've moved batallions to regroup for Donbas offensive leaving behind Bucha and other horrors.
No connection to anything related to NATO. If anything "NATO enlargement" rhethoric is just a coverup. Estonia is part of the NATO and it's bordering Russia with travel distance of 210 km to St. Petersburg.