Religion at its best does do that. Rarely is religion at its best, unfortunately. Historically and currently it has been used more as a policy to control the masses. You better be good or you won't get your afterlife reward. You may be downtrodden in life but don't sweat it, you will be so much better off when you get to the afterlife. A tad cynical perhaps.