Flatworm Frottage

The flatworm lifestyle is pretty weird. The whole “let’s fence with our penises and the one who gets stabbed becomes the mother of the other’s children” thing? Who thought this was a good idea? I just wonder what goes through their tiny synapses.