Dogma tells us to lay our sins on Jesus as He was sent to suffer for all the sins of the world past, present and future.
Laying your sins at the feet of Jesus on the Cross is an image that gives comfort to many people. It is a trick of psychology. Go to the priest and confess and he will pass on Jesus's forgiveness to you through the authority of the Church and you will feel better. No licensed psychiatrists back when this started.
If ever there was a guilt trip, this one has persisted for centuries.
What could make a person feel worse than the knowledge that they have put their guilt off on an innocent person? What could make you feel more guilty?
Thus the Church controls the minds and lives of the people by manipulating their perceptions of reality and justice. If they allow it.