Why am I bleeding?

I've had spotting for three days and the spotting has been on the same time as my fertile window! Why am I spotting?