You 're right. I should’ve said as a form of contract. Although social interactions usually adhere to survival, moral and ethical regulations, describing those as laws(legal) it might be interpreted as they had a law system as we know it in modern days(children and parental rights etc.).
That may had been a case, among others. Both believing in supernatural beings and concepts had lead people to include religious rituals in many societal interactions.
Religious influence, as I said in my previous posts: