Everybody has this.
You know how if you cut yourself and the blood dries, it doesn't dry red, it dries brown...? It's the same thing. It's just the blood isn't as fresh, and it's mixed with discharge too.
It may look icky, but it's totally normal. You'll probably get this a bit at the start of your period, then again at the end.