Bags have been used as standard measures for a variety of commodities which were actually supplied in bags or sacks. These include:
The Oxford English Dictionary has a definition of "bag" as "A measure of quantity for produce, varying according to the nature of the commodity" and has quotations illustrating its use for hops in 1679, almonds in 1728 (where it is defined by weight as "about 3 Hundred Weight" i.e. 336lb in Imperial units) and potatoes in 1845 (where it is a volume measure of "three bushels" - i.e. 24impgal).[1]