I think religion generally tends to do that; some religions more than others. They fill you full of behaviour rules when you are young. Most of those rules are self-evidently right. Then they try to maintain their relevance or control by telling you that you need to keep listening to them so that you know what is right or wrong.
It is a classic marketing trick, because they in effect have created a need for their product, and sell you the cure. I suspect that is one of the major factors that keep religious people loyal to their chosen religion.