Governments are a function of their laws. I'm not sure what you mean by, 'are allowed and expected to keep secrets from each other'.
I don't actually allow or expect my government to keep secrets. I don't think 'they' are even authorized to. If 'they' could, 'they' would not be a representative government, of, for, and by the people.