That happened to my Kawasaki KZ650 once. Battery was broken and had an open condition, as if it wasn't there. After a push start, it ran fine, except the higher I revved it, the higher the voltage went, and more and more lights burned out. First to go were instruments, then turn signals, and finally brake lights. The headlight survived because I parked the thing after riding around the block.
I've read (on a car forum) that the voltage regulator needs the battery voltage or resistance (or something) to make the circuitry work properly. And judging by the 5 wire connector, and the way my lights burned out, I have to believe that.
(BTW, if it matters, this 1979 bike's ignition was "points". That's where a magnet on the crank pulls a lever which closed a switch which sends 12 volts to the respective coil. Basically like a car's distributor cap, but without the lateral friction. By 1984 the 900 Ninja from Top Gun had digital ignition. My '85 fzr400 did also, as did pretty much all bike's from the mid 80's on. Thankfully, I've never had an "open" battery on one of these bikes.)