Rape is sometimes motivated by power and control, and sometimes by revenge and anger, and sometimes by sex, and sometimes by simple sadism.
The last category of rapists often aren't even gender-preferential.