This wasn't the case until relatively recently (the 1700s or so, depending on where you live), and still isn't case in places that use, say, traditional Islamic law (Iran).
Before modernity, people were considered parts of their family/household, and if someone was raped or murdered, the ultimate victim was the family/household, represented by whoever was its head, paterfamilias etc. And the punishment was often a form of blood money (weregild, qisas), to compensate the familial unit for injury or loss of a person.
Current reader will likely find this appaling, but, for example, rape of a young girl was considered harmful against the future value of the bride, thus the father got a bag of money as a compensation.
The past is truly a different country.