They don't get all of it. Only large swathes for free. I guess that either USSR cannot do anything about it or at least USSR AI is programmed to always agree the territory being grabbed away for no reason.
I would also partition Poland if it could do something like this to me