Kinda gross but ...

Why do girls get those globs of blood that come out while in their period sometimes? What does that mean?