It's also about risk management from the government's perspective. You don't want to be beholden to a potentially hostile foreign corporation for tasks as essential as managing your own documents. Compared to how much money they already spend on American SaaS, Investing a few million euros in open-source alternatives could be seen as cheap insurance.