@Smileyrius,
The simple answer would be that the objective of Religion is to guide people through a code of conducts to find happiness in life.
From the start of life, lifeforms have been actively looking for Happiness. In earlier lifeforms, it was mostly some form of physical pleasure ; now, for the advanced human, it is both physical and mental - pleasure and happiness!