It's not only in Germany, it's an EU mandated thing to have e-invoicing to prevent fraud and whatever other things the bureaucrats in Brussels felt like it would be solved with technology.
And yes, sadly the powers that be decided that this crap needs to be XML. Because why not, why use a modern standard...