I have come to realize that I have a lot of weird trust issues that stem from my desire to be perceived in a given way. Further analysis has helped me realize I want to be perceived that way because it's a defense mechanism for me - by being seen as the person who can fix anything, I feel better about things I can't control like pandemics and unrest. For me this also ties into how I self perceive my own value - being useful gives me value. This then begs the question of why I feel such a strong need to be externally validated...
And obviously your particulars are different but the goal is to open the dust covers and understand what is driving and controlling the mental machine.
Generally the situation doesn't warrant shame, and there's underlying reasons for you feeling the shame about that situation. You can learn a lot about yourself from those.
A good friend can do the same thing, but even with the best of intentions not everyone knows how to non-judgmentally help you address issues without unintentionally causing more shame. Sometimes the reasons we keep these thoughts to ourselves is because we shared them in the past and were hurt by the response.