In addition, lasers scan extremely well in low light conditions due to the intense light a laser outputs which illuminates the barcode so the sensor can read it, even in the dark.
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.