The bleeding is caused by a "sloughing" of the uterine lining. Essentially, a uterus replaces its surface layer once every month. This occurs in a cycle. The final part of that cycle is the shedding or sloughing of the uppermost layer. This causes the bleeding.
In case you feel this is gross or unusual, it might help to know that it occurs in most, if not all, female mammals.