When a material makes the transition from the normal to superconducting state, it actively excludes magnetic fields from its interior; this is called the Meissner effect.
This constraint to zero magnetic fields inside a superconductor is distinct from the perfect diamagnetism which would arise from its zero electrical resistance.