Why confess my sins to a priest?

Jesus said it -Whatever you bind on earth shall be bound in heaven, and whatever you loose on earth shall be loosed in heaven. (Mt 16:19)

Whose sins you forgive are forgiven them and whose sins you retain are retained (Jn 20:22,23)