Games Scientists and Theologians Play

What if religious beliefs about divine beings were caused by natural processes rather than real divine beings? Or what if religious beliefs were random unnecessary by-products? Religion is like leftover trash that can be done away with. What is someone committed to belief in God left to do?