Why do products have barcodes?
Short answer
Barcodes represent product information in a machine-readable form, helping checkout and inventory control.
How it works
A barcode does not necessarily contain the price. Stores may match its product number with a database price.
Key point
The practical point is this: Stores may match its product number with a database price.