Medusa was raped by Poseidon in the temple of Athena. It was not he who was punished, but she: Athena turned her into a monster. Perseus beheaded her and was celebrated as a hero. The victim becomes the beast, the perpetrator walks free. This is how victim blaming still works today.