Shedding the wing saved everyone on board. The fuel was in the wing and it was left burning on the runway while the fuselage kept sliding.
I’ve seen a couple of interviews with passengers. One who is a paramedic said when they were upside down after the plane had come to a stop he could see and smell fuel pouring down the windows. He knew they all had to get outside and as far away from the plane asap.