Why do we pick ourselves apart, decide we are unacceptable & not worthy of meaningful relationships?

Maybe you relate to this question from an external point of view focusing on a body part or disapproval of your physical appearance and how you see yourself.   Maybe you relate to this question from an internal point of view focusing on heart-break, disappointment, shame, guilt, anger, resentment, regret,...