One thing I wondered

I understand why people leave from a religion and become atheists or agnostics. But something I always wondered is why atheists or agnostics become religious or religious apologists. I get that everyone has their own personal reasons for making those choices, but I was just interested to see what the groups thinking was