From what archeologists can determine, the pita originated with peoples west of the Mediterranean. It is not perfectly clear if it was the Amorites or the Bedouins were the inventors. Both the farming and desert society respectively adopted pitas as their own. Soon, its popularity spread as the Bedouin peoples traded and travel across the Arabian and Sahara desert.
Originally, the pita was a combination of dough that was let to sit and collect yeast and fresh dough until the discovery that brewers yeast works. In the Middle East, It is still often made in a backyard stove compared to the store-bought pitas that have spread all over the globe.
But the history of pitas can only really be appreciated through the taste. The pita though has to be tasted with all the different foods that thrive in or enwrapped by pita. And then you will understand that sliced bread is the best invention since pita bread.