Try reading comprehension lessons.
The passage doesn't say that people are to go to confession to the elders.
It's addressing going to the elders of the church for prayer for healing and that incidentally, IF he has committed any sins, they will also be forgiven.
Try reading comprehension lessons.
Really, you clearly need them.