As the story goes, a mideastern goat herder observed that his goats liked to eat the fruit from a certain plant. The goats became excitable and refused to sleep at night. The goat herder had discovered coffee beans.