Why when on period there are bood clots

Like when you use the restroom there food clots coming out