1- The increase of anti semitism post-WW1, the Treaty of Versailles and the political and social chaos in Germany led to various german nationalist parties forming the NSDAP.
2- Germany officially joined WW1 due to its military alliance with the Austro-Hungarian Empire.