MSI occurs due to defects in the DNA mismatch repair system. This system is responsible for identifying and repairing erroneous insertion, deletion, and misincorporation of bases that can occur during DNA replication. When the MMR system is defective, these errors are not corrected, leading to microsatellite instability.