For human societies, however, the existence and compliance of such a code is far more important, precisely because of the above-mentioned need, to ensure the most undisturbed possible framework for the long-term breeding of the offspring. However, successful breeding of children also requires, that mothers, in particular, have the opportunity, to take sufficient care of their children. Since mothers are predominantly young women, a well-functioning society had to protect them from sexual and other assaults.
We know from ethnological research, that indigenous peoples, who lived nude or almost nude until the modern times, had very sophisticated social governance rules with strict taboos, for which rigorous punishment was imposed. In almost all nude living societies, such taboos included staring at the genitals or the female breast, but in particular the prohibition of touching. Not even touches of a woman's hand or arm were allowed to the men.
Examples: Who touched an unmarried woman, had to marry her or, if that was not possible (for example because the wrongdoer was already married), give her the entire dowry, which usually led to his personal ruin. Who touched a married woman, often had to cede all his belongings to her family as compensation. Touching of a breast or even a vulva was punished in many places with death or life-long banishment.
Compared to such rigorous rules, the moderate 10 commandments, which were the basis for the Jewish people and were adopted by Christians and Muslims for lack of own ideas, sound comparatively mild. However, the Jewish people was also a people, whose members began to dress quite early due to the above mentioned shame of genitalia and other body parts.