I feel it is important to define "sacrament" before I respond. Sacrament: a religious ceremony or act of the Christian Church that is regarded as an outward and visible sign of inward and spiritual divine grace.
For you to say "Christ never taught anything about ritualistic sacraments, or going to confessionals" and that they were "invented by a person or a religious organization" is NOT TRUE.
In the NT it is VERY CLEAR that Jesus and the Apostle practiced and taught the "ritualistic sacrament" of baptism. Jesus also said, Go therefore and make disciples of all nations, baptizing them...." This sacrament and ritual was practiced and established by Christ and is WELL documented in the NT and 1st century historical Christian writings. It is NOT a new invention.
At the Last Supper Jesus said, "Do this in remembrance of me". With those six words Jesus established a "religious ceremony". Christ even practiced it himself with the two disciples on the road to Emmaus. It is a ceremony instituted by Christ, practiced by Christ and WELL documented in the NT and 1st century historical Christian writings as being practiced by all Christians. It is NOT a new invention.
As we know from 1 John 1:9 if we confess our sins, he will forgive us our sins and purify us from all unrighteousness. In John 20:23 Christ gave man the authority to forgive sins. According to historical Christian documents the ritual of confession was conducted publically in church. Over time this practice changed and The Church practiced confessing sins to a church leader who, by the authority of Christ in John 20:23, was able to forgive those sins. Like scripture says, whatever The Church binds on earth it will be bound in heaven. It is NOT a new invention.
Those two rituals/ceremonies were CLEARLY not invented by the Catholic Church "in the middle of the first millennium". As you can plainly see they were instituted and/or practiced by Christ and his Apostles and are in historical writings of NT Christians.
Respectfully, Mary