So in studying the topic of neutron stars I've encountered one particular detail that I've found no good explanation for. Most resources I have found say that the strong magnetic fields of neutron stars are due to conservation of magnetic flux during the supernova that created it, i.e., the supernova core is magnetized and through conservation of magnetic flux, the resulting neutron star is also magnetized (although to a much higher degree due to its smaller radius). I haven't been able to find any explanation on why the magnetic flux would be conserved, and would appreciate any input to help me understand this.
Thanks in advance!