This is the full version worth watching with discernment.
It is written to understand quoting in context:
5"When you pray, you are not to be like the hypocrites; for they love to stand and pray in the synagogues and on the street corners so that they may be seen by men. Truly I say to you, they have their reward in full. 6"But you, when you pray, go into your inner room, close your door and pray to your Father who is in secret, and your Father who sees what is done in secret will reward you. 7"And when you are praying, do not use meaningless repetition as the Gentiles do, for they suppose that they will be heard for their many words.…Matthew 6:5-7
If we confess our sins, he is faithful and just to forgive us our sins and to cleanse us from all unrighteousness. 1 John 1:o
We are asked to confess our sins to cleanse and purify our heart and soul. It is God who forgives our sins...What we confess to a man might be held back, while God knows everything already. So the encouragement to go and pray in private is with the opportunity to seek forgiveness too.
Peace be with you