Religion in general, though comes from a completely different place in the psyche of humanity.
Prehistoric cave paintings were religious in nature. They worshipped what they ate. In oppressive civilizations you worship what eats you, if you catch my drift. In the case of Christianity, it deadens you to the pain of being 'eaten'. Christianity is indeed an anaesthetic.
The religious impulse is simply a way to organize the world in the mind of the believer so that things make sense. That doesn't necessarily mean that the religion is rational but that the psyche, ego or whatever you call it, needs a framework of ideas to give the world meaning. It is basically a narrative, a story of stories, that we learn and recite to ourselves, whenever something perplexing needs explanation.
In it's original, uncorrupted form it's simply a way of making sense of life and the world.
True, but as soon as a society includes a ruling class, it needs a tool to rule. Religion works so well. Look at America today. "Family values" and jesus have managed to make a big chunk of the country work against thier own best interests.