When a person goes to confession, they are not typically confessing to sins against the priest.
Matthew 6 is part of the Sermon on the Mount, it was preached to the people, it was not private instruction to the Apostles.
Oh, different rules for the priests and the popes than the believers?