Why confess my sins to a priest rather than directly to God?

Why confess my sins to a priest rather than directly to God?