Rapists get punished if there are 4 witnesses of the rape. I don't think Muslim men hate women, they just don't see them as their equals and have no problem oppressing them.
This is a common myth about Islamic criminal law. Rather, the four witness requirement applies only to the prescribed hadd punishment (which in the case of a married person could be death and for the non-married, 100 lashes). [Marghinani, Hidaya] This punishment is only applied in very rare cases, as is clear, and is meant to be a social deterrent, above all.
As the classical and contemporary jurists (such as Mufti Taqi Usmani) have made clear, a rapist can be convicted on lesser evidence (including scientific evidence, such as DNA tests and medical reports) for discretionary punishments. These discretionary punishments are left up to the legal system to determine.
However, it is a myth to say that Islam would in any way condone rape, or allow a rapist to go free for this terrible crime against an innocent human being and against society.
I will agree with you that men in these countries see women as lesser beings. I am Somali and it is something I see in our culture.