These goats climb (e)argan trees to eat the fruit. They poop out the seeds. Someone then collects the seeds and they crack them open. Inside is an "almond" which can then be eaten or have the oil extracted for a variety of cosmetic and, more awesomely, food purposes. They make a really awesome peanut butter with it (yep, I have some)!
This was the single silliest thing I saw in Morocco.