the enemy of my enemy is my friend.
The Nazis were just straight up enemies of Poland. Over the course of the war they completely demolished Warsaw - which Hitler wanted to turn into a lake, murdered an enormous percentage of Polands population, enslaved millions more and attempted to resettle the country with ethnic Germans. Poles who collaborated were fools.