Electronic factory hazards are mainly welding flux, and contact with lead solder
But electronic boards are not big volatile limited, and now generally have exhaust equipment, smoke immediately be sucked away, and solder are now lead-free based. So the overall harm is not too great.
And spray paint is not the same, some of the workpiece is very large, even if there is exhaust equipment is the overall plant equipment, people will inhale a lot.