If you imagine that barcodes are used only on products that are sold in shops and supermarkets, you would be rather off the mark. These labels are used for many purposes as they are small but can carry lots of information not just a price of the item, can be easily scanned in restricted spaces in necessary.
Pricing of products is the most obvious and they also know the price of the product and avoid intentional or un-intentional mistake at the cash point.