My guess is for a sort of absolute positioning as opposed to the relative positioning of an optical mouse.
A mouse produces deltas relative to your previous position, while the bar codes are always in the same place.
The problem with relative positioning is that even a small inaccuracy will accumulate over time, resulting in edges being off in the end.