 The only way they could know the sin is if it were told to them. So you're right. It is a mandate when you go to confession that you and I have, and this is true of all Catholics, not just lay people, priests too, that you have to reveal, you have to confess your sin to Jesus through the ministry of the priest.