Germany invaded Poland because it was humiliated in the Treaty of Versailles and the Danzing corridor - inhabited by Germans and the Port of Danzing were given away to Poland after the WW1. Hence, Hitler invaded Poland.
Hope it helps!
mark brainliest if it helps :)