I know some really smart people who are 100% onboard with religion, be it one or the other. Whether it's Baby Jesus or Buddha.
When i asked my best friend about it years ago, his answer was very simple to understand.
He just said "what if there is a chance of an afterlife? What if i get the spend eternity with all the people i love?"
Makes sense on a basic level, and why i believe most people follow religion to some extent or another.
Or people like my mother who grew up very religious and made their entire life about religion. I think it's completely illogical to live this way, but i can see why it gives her peace.
I was raised in a very overbearing religious family, and by the time i was 14 i knew it was all bullshit and a method to control people. I've spent many years studying different religions and traveling the world to experience different cultures, religion on a base level is a very good thing.
And as long as people leave me alone about it and don't try to force it down my throat, i could care less what they believe.
The world would be a terrible place if the majority of humans were not religious and didn't believe in good/bad or heaven/hell to some degree.
That's why i think it's good to have religion.