Advantages of an opaque box
Tiny parts often have a warning in the data sheet. The packaging is so thin that light can get through turning diodes and transistors become photodiodes and phototransistors. You do not normally see this in action because of EMC shielding or the box that the device comes in.