^what they said.
Sweeping magnetic mines in a steel hulled boat is a generally bad idea. As to how compartmentalized they can be when made of wood I have no idea, but stuck on a reef like that and then add in wave action and I'm guessing it might not make much difference. Even with a steel hull it might have been toast.