The key here is that those muggers are not attacking their male victims *because they are men*. The women are being attacked *because they are women*. Thus the attacks have a gendered nature in the case of the latter and not the former. 

Therefore, while we could debate the first word of the phrase "war on women" as hyperbolic, the latter prepositional phrase seems to be perfectly logical.