Brazil also famously avoided the 2008-09 recession to a great extent, to name one example.
Tight global integration is not a bad thing. Even if we took at face value your argument that a strong domestic market protected Poland in that case, you can't cherry pick the one instance in which lower-than-expected integration was beneficial without also considering all the other times in which it was harmful.
But this was largely the particular cause in this case... The strong domestic market insulated the economy from international economic shocks.
Poland's growth does well when everyone is in the dip. Even in 2020 crisis Poland dipped less than other. Although the difference was less that time. 8 years of populist rule did harm Poland a bit.