Because not only that the immigrants have no allegiance to Germany, most have different culture and sometimes incompatible values.
I grew up in the Middle East and I can tell that cultural differences and values were more smooth and compatible than what I saw in Germany. Conscription requires a degree of trust in the people you give guns to and expect to fight on your side in case it is needed, that is mostly not true with immigrants in all times and all countries.
Ten years of "refugees welcome" to fighting age men who we don't trust won't run amok when we go to war with a third party. Very cool.