Mid Cycle spotting

Does anyone know what can cause mid cycle spotting? I’m on cycle day 21 and I’m never early for my period. TMI it only happens when I go #2.