I don't think the two things are related either. I was a devout Christian for thirty years, and I was miserable. I suffered from years of depression, guilt, confusion, anxiety, an eating disorder, and I was suicidal at times. My experience with Christianity was a horrible nightmare that I thought would never end.
I genuinely believed in God and diligently sought him for forty years. I dedicated my life to him through prayer, worship, ministries, evangelism, and Bible study, only to end up empty-handed, heartbroken, and disillusioned. I never felt peace in my life, as other Christians claimed to feel it in theirs. I didn't feel the presence of God as other Christians claimed to. I felt confused, angry, and hopeless. I played church in the hope that I would start to feel something—anything that indicated to me that God is real and that he cares about me. I didn't feel peace and joy in my life until after I renounced my belief in God and left Christianity. I finally experienced peace and freedom from emotional bondage. I never felt either one during all the years I was a Christian, despite years of sincere prayer, reading and studying the Bible, genuine devotion to serving God, and serving God in church ministries and as an evangelism team leader. I merely went through the motions and played church. I appeared to be a joyful Christian on the outside, but on the inside, I was bereft of hope, joy, and inner peace. I was hurting and suffering, and no one knew about my misery other than my husband. I'm not exaggerating when I say that being a Christian was a nightmare for me (see my post
here). I'm truly relieved to be free of it, and I have no desire whatsoever to ever return to it.