Worship of the Sun, ancient gods, God etc. make some sense for me too. You said that we 'can learn a lot about our current inner realities through religion (and legend, and myths, and fairytales etc.)'. I would rather say 'social realities'.
Hard science is making up some hypotheses in order to check out if ensuing predictions will be accurate. Religion is mostly organizing humans around belief in some 'higher' powers in order to check out if ensuing social order will work out (at least for the elites). I think religions are experiments just like sciences.
A lot of these social experiments succeeded for the elites and sometimes also for the masses. Our species build the biggest and most effective social structures on the planet (Harari, Sapiens). We need to be grateful, yes.