It was undergoing extensive upgrades and repairs. Hydraulic lines had been removed in some places that supply hatches and others were obstructed by other equipment. Loss of the ability to secure certain hatches to help contain it and the disabled Halon system was critical. From what I heard from Navyfag is that people onboard think welding accident set off a pallet oil.