Which evolved first, the penis or the vagina? Why was it retained until its counterpart evolved, no doubt thousands or millions of generations later?
There is strong evidence the first multicellar sexual critters were hermaphroditic (some simple multicellulars still are). Over generations, some began to specialize, as it were.