Reportedly the source of ignition was an large onboard explosion of so far unknown origin while the ship was being refitted for F-35B operations. Might not have mattered - we’ll have to see.
One of the early reports I’ve read attributed the fire to a welding accident. I haven’t seen any updates to this possibility.