That's a question that we've all wondered about. Clearly the generators overheated but why, we're not sure. Some speculations I have is that daisy chaining them may have been an issue. Basically, I had one generator plugged into the other to feed power to it. Also each generator was connected to its own solar panel. So one of the generators (the one that caught fire first actually) had power inputs coming from both the solar panel and from the other solar generator. Maybe this caused it to overcharge? Not sure ...
Another issue is that the box that they were in was insulated and some of the insulation had come loose and was leaning against the generator that caught fire first. Maybe this blocked a fan which caused it to overheat? Again, not sure ...
Lastly, and I did not discover this until afterwards, but my trailer had an open ground. This can be a dangerous situation. I had noticed that sometimes when I'd use my microwave that it would flicker. I didn't know at the time that this was indicative of a grounding problem. I'd suggest that you read this article to learn more about the dangers of an open ground and how to rectify the issue:
How To Fix an Open Ground on My RV: A Step-By-Step Guide.