mid-15c., apparently from Old French barater "to barter, cheat, deceive, haggle" (also, "to have sexual intercourse"), 12c., of uncertain origin, perhaps from a Celtic language (cf. Irish brath "treachery"). Connection between "trading" and "cheating" exists in several languages. Related: Bartered; bartering. The noun is first recorded 1590s, from the verb.
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.