The anus may have evolved multiple times in many different organisms, and formed through a fusion of the gut with the reproductive organs in some lineages, according to two evolutionary biologists.
The experts say that in the first organisms to benefit from guts, food went through one way of the mouth, and waste the other.
However, according to them, one hole for everything became impractical when the organisms grew in size and length.
"A long gut makes sorting food and waste through a single opening inefficient. So they needed to evolve an anus," Nature magazine quoted Andreas Hejnol, a researcher at the University of Hawaii in Honolulu and one of the study's authors, as saying.
Detlev Arendt, a researcher at the European Molecular Biology Laboratory in Heidelberg, Germany, added: "The very simple question is how to get from one opening to two."
He says that punching a new hole on the opposite end from the mouth is unlikely from the evolutionary standpoint.
He believes that the mouth elongated over time, and separated into a mouth and anus.
The researcher says that once the body included a gut with two ends, the anus could migrate to the far end of animal.
Hejnol and his co-author Mark Martindale, also at the University of Hawaii, think otherwise.
They compared the patterns of gene expression during development at each end of Convolutriloba longifissura, a simple flatworm with a cul-de-sac for a gut, to those seen in more complex worms that have a mouth and an anus.