If a government entity would work like this, all heck would break loose.
Trying to contrast this to the EU's attempts to force only gatekeepers (those companies so large that there is no alternative to dealing with them) to open up systems, even at the cost of damaging e.g. apple's valiant and welcome attempts to protect the privacy of its customers, highlights to me that the EU is completely correct in doing so.