Also, the statement is itself wrong already at face value in many situations, for example if someone has a credit card or runs an online shop and is contractually required to hide something. For instance, quoting from https://usa.visa.com/legal/checkout/terms-of-service.html:
"You are responsible for protecting the confidentiality of your username and password(s), if any. In addition, if you choose to be remembered on your device or browser, or link your use of the Visa Solution with a digital wallet, on one or more device(s), you are responsible for protecting the safety of and access to such device(s). It is important that you do so since we are not responsible for any losses you incur as a result of unauthorized use of your Eligible Card and, depending on the circumstances, your Issuer may hold you responsible for unauthorized use of your Eligible Card account."
Another example for mandatory secrecy are confidentiality requirements imposed by professional obligations, such as for lawyers and physicians, in order to ensure fair trials, and for the protection of human dignity.
"You are responsible for protecting the confidentiality of your username and password(s), if any. In addition, if you choose to be remembered on your device or browser, or link your use of the Visa Solution with a digital wallet, on one or more device(s), you are responsible for protecting the safety of and access to such device(s). It is important that you do so since we are not responsible for any losses you incur as a result of unauthorized use of your Eligible Card and, depending on the circumstances, your Issuer may hold you responsible for unauthorized use of your Eligible Card account."
Another example for mandatory secrecy are confidentiality requirements imposed by professional obligations, such as for lawyers and physicians, in order to ensure fair trials, and for the protection of human dignity.