Specialized hardware reads barcodes faster and more accurately which really makes a difference when you using them a lot
Just imagining the frustration of trying to perfectly angle your camera to scan a can of beans in your dark cupboard makes me want to toss my phone against a wall.