Religion as "a set of beliefs which explains how the world came to be and so, so..." I can imagine was inspired by man's dislike for being ignorant - ancients could not explain this and that, so they created epic stories to fill the gaps. One epic story explains why it rains, another epic story explains how that mountain appeared.
Most people today (and I) regard myths as allegory, but it is certainly the case that the majority in the past regarded them literal, least because even nowadays some see them as literal stories. But I am unsure about something: did myths form as allegorical stories, which were taken literally? I am unsure because my confused eye sees too many metaphors and analogies in myths (of course, my eye). Of course, if this can be answered, it would be very hard - myths do not have a single author.
For philosophy, I really can't view its sole purpose as truth-seeker. As much as I read works of philosophy, I only see centuries old concepts looked at from a different angle. Yes, there are some fundamental ideas born by it, but they are really few - whether you like the next words or not, I perceive a big part of philosophy, mostly idealism, as subjective. This of course is a subjective thought coming from a mind, which like all minds, has bias.
Discuss philosophical questions regarding theism (and atheism), and discuss religion as it relates to philosophy. This includes any philosophical discussions that happen to be about god, gods, or a 'higher power' or the belief of them. This also generally includes philosophical topics about organized or ritualistic mysticism or about organized, common or ritualistic beliefs in the existence of supernatural phenomenon.