My best guess is that your item is an 'aftermarket' item , as in a non-OEM part .
It sure looks like a bicycle headlight (commonly 6 volt d.c.) , esp. due to the remaining mounting hardware , that was connected to a friction-mount (driven by the tire) generator , TJNChris !