Although, the possibility of a garage being oriented such that the sunlight would directly hit the sensors while the garage door is open seems like it could be a not infrequent occurrence.
Also it could be 'fun' to swap out the LEDs?
But yeah, why this isn't laser based, or using a light frequency that is less affected by sunlight? Probably cost, or ignorance.
It'a not laser based so the sensors don't have to be perfectly aligned. Keeps your garage door working when you kid knocks it with their foot.
You can, however, tape the sender and receiver together.
It also is a lot easier to see fallen bolts and shit on a black floor than on a white/gray one.
I had to replace my opener and door anyway and had a conversation with a tech about it. We decided on a LiftMaster in part because their sensors are very good at dealing with sunlight.
It looks like an industrial photoelectric sensor, including laser based ones run around $100, so maybe that can be a realistic swap.
https://www.automationdirect.com/adc/shopping/catalog/sensor...
Same sort of problem. The obstruction sensor at the bottom of the door is confused by the strong sunlight and the door stops closing part way and re-opens.
I've tried a toilet-paper tube around the sensor but that isn't always successful. I really wish there was a laser sensor to replace it with.