spotting 😭

Can someone help me and explain why spotting is a thing? I got over my period a week ago but now I wake up and there's blood in my panties. I don't understand