It's a defect (where small amounts of the field aren't expelled) that allows for the pinning to happen: https://en.wikipedia.org/wiki/Type-II_superconductor#Flux_pi...