It's the way homo sapiens evolved. All humans have had the need for the comfort of the belief. It does provide an explanation for the otherwise inexplicable; humans have inherited curiosity, which is what helped us to succeed as a species, and need an answer to every question; but it also provides comfort. It is agreeable to have some 'higher power' to pray to or appease in times of trouble or worry. Religious people evidently feel soothed by the experience of worship and prayer. We atheists have the rather less comforting thought ,to paraphrase Alcoholics Anonymous, that there are things we cannot change and things we can and we must do our best to tell the difference. (They, of course, make that thought into a prayer!)