the answer is to define a society's values.
Dominant group tend to held the resources and power to control the leaderships position in each society.
From this position, they could determine regulations that are allowed and not allowed to do by the people and forming what the society considered as right and wrong in the long run.