We al make mistakes and though we may not realise it at first the reality dawns on us later. Nobody is perfect and so we'll do something wrong. However once we do what's important is to agree and make amends. Goes a long way as opposed to sweeping stuff under the carpet. It's not the sweetest but every now and then we eat humble pie. Even the first step in recovery is to admit you have a problem in the first place
Even to receive God's forgiveness we start by confession. 1 John 1:9 "If we confess our sins, he is faithful and just to forgive us our sins, and to cleanse us from all unrighteousness."