First, girls need to provide funds to protect themselves from rapists. Well, if there was a rape, then you need to give a punishment for the choice of the victim: rape the rapist in public, cut off his genitals or the death penalty.
It is not always practical for the girl to defend herself. If the girl is all alone, and she is being hounded by a dozen criminals, then how do you expect the girl to defend herself? It is the duty of the society to protect the girl by preventing such situations.