Did you know even the old-school computer mouse uses light to work?
The new school just don't have a mechanical component of a ball and two rollers which spin two separate "gears" which blocks light and then math to figure out the horizontal change + vertical change.
I found that pretty neat when I learned. (I'm old enough to remember the pains of using a gunked up ball mouse.)