No academics I talked to were aware of any evidence that barter was actually the precursor to money, despite the story’s prevalence in economics textbooks and the public’s consciousness. Some argue that no one ever believed barter was real to begin with—the idea was a crude model used to simplify the context of modern economic systems, not a real theory about past ones.
In a small economy where individuals specialize in trades, they may find the process of setting up a centralized currency and maintaining it an unnecessary burden in order to trade. One option may be to use a commodity to exchange value between parties that want to trade goods or services and this is why gold and silver have been useful forms of currency in many cultures and times. Another option may be to use a barter system to trade.