Why do they have to tell a priest, doesn’t God know this? How does the priest know they’ve actually repented and not just gone through the motions?
For the first question, see Post 49.
For the second question, absolution is given but doesn’t actually count without actual repentence. The priest doesn’t know, and doesn’t have to.