In Germany, migrants are exempt, and eligible draftees now have to ask official permission to leave the country
If by everyone you are exempting about half of the population (females), then you are correct.
Back in my days in Chicago, Krauts working for an US Alinsky organization was a legitimate way to avoid service in the German Military.
Germany stopped the military draft in 2011...German government is not restarting the draft at this time...
This regulation has been around for a long time...
When asked, the ministry spokesperson pointed out that "the regulation was already in place during the Cold War and had no practical relevance; in particular, there are no penalties for violating it.”
https://www.dw.com/en/german-men-need-military-permit-for-extended-stays-abroad/a-76662677