Why does spotting happen before af? It wasn’t implantation.

Not sure why it happened?