Religion
In reply to the discussion: Most religion is faith-based, rather than logic-based. [View all]MineralMan
(147,386 posts)Generally, they are in line with the ethical values expressed in most religions. Establishing such ethical or "moral" rules seems to be one of the functions of religions, although it can be argued that the religions merely collected the prevailing ethical and moral standards of the society in which they developed.
From my own study of various religions and cultures, the same rules appear in virtually all of them. Most can be attributed to a basic law of reciprocity, which is expressed as the Golden Rule in Judeo-Christian religions. Most other rules derive from that basic one, which is reflective on what the individual prefers that others do and not do when it affects that individual.
Frankly, I can see no real need for religious codifications of behavioral rules. Societies and cultures generally come up with the same ones anyhow. In fact, in modern scientific cultures, I can see no need for functions that religion provides.