Marriage is a core component of the patriarchal system. According to Gerda Lerner's research on ancient societies, a woman could achieve at least some status, and with that, better treatment and privileges, through preserving her only capital – her virginity – and eventually offering it to just one man.
The responsibility for men's behavior, indeed for civilization itself rests entirely with women here, and in how they dress and behave. Men's animalistic impulses are presumed to be overwhelming and uncontrollable. And as men are brutal, brainless savages, women must hide their bodies to avoid being assaulted. In most societies, a respectable woman, to varying degrees, is expected to cover up. If she doesn't she is inviting assault.