Yes, but the implication is that the state needs to know what is said, to root out crime. It is logical to assume that if the state were privy to all conversations, that much more crime could be rooted out.
People speak to others about their involvement in crime / if the state heard these discussions the speaking criminal could be punished / therefore in the interest of justice, the state should hear all conversations
A confessor may chose to share in general with no specificity the crime brought to him by the penitent .
The state then has the responsibility to use its resources to investigate the type of crime, then identify a specific crime, then identify a suspect. They may be
able to, they may not.
It is said that a Catholic priest will die rather than reveal a privileged communication. Some Protestant pastors will die if they cannot find someone to tell a privileged communication.