I left Catholicism when I was 18, so I literally have a child’s understanding of the Catholic practice of confession. It was a ritual that did not make much sense to a child.
What is confession? It’s one of the seven sacred sacraments, the other six being eucharist, confirmation, marriage, holy orders, annointing the sick, and baptism, in some order. Catholic Wednesday school, known as CCD, is supposed to introduce kids to three of the sacraments, namely eucharist, confession, and confirmation.
Confession was essentially a scheduled annual obligation. One day, all the kids would quietly line up for a little private chat with one of the priests. And just to paint the picture, we always talked to priests face to face, we never used confessional boxes, ubiquitous though they are in fiction.