When the Nazi German regime occupied France, they found that the French were spying on their citizens much more than the Gestapo would ever dream of doing and brought their activities into line with the French, not the other way around.
That likely had historical roots going back to Napoleon and Joseph Fouché, the head of the secret police.