Was the genny connected in through a double pole contactor? If so then the neutral would have been disconnected too. I think the cause would be static building up on the genny frame, which then runs to earth through the first pole to connect when the contactor goes over. If there are any computers in the system, their power supply filters will provide the earth route.