Why do Laws help protect the criminal rather than the victim?

I never understood this but why do societies help protect the criminal more than the victim? It makes no sense why would you want to give more rights to a criminal than a victim?
A man rapes a woman and it's a whole soap in court where they try to portray the woman as a whore and a skank.
Why do Laws help protect the criminal rather than the victim?
Post Opinion