Lot numbers or batch numbers can be used when customers or your QC team (in a fulfillment facility) catches product defects.
Knowing which lot number the product belongs to enables you to contact your supplier to ask for refunds.
Inventory lot control in a system like Shipedge also lets you trace the product to ensure that there are not bigger issues with the production lot as a whole.