nobody coded our genes, they developed that way due to natural selection, as it was beneficial at some point in our history (probably many points).
once again how can you not see that just pointing to your imaginary friend and saying that he did it is a very poor explanation of anything - it just raises the larger question - then who created this mystical powerful being? did they evolve? were they created by an even more powerful being? god 2.0?
I find the natural selection explanation a lot more satisfactory.
you would have us believe that this "god" created men with a genetic disposition towards religion, then allowed thousands of competing religions to flourish for thousands of years before one religion somehow discovers the "truth". All other religions before and afterwards are definitely wrong though.