Cycle help

teya

So I had my regular cycle almost 2 weeks ago. Yesterday day I started spotting and last night it was like a period. Well this morning it went back to spotting. Why?