what caused my miscarriage?

today just going through a lot of emotions. I may have a d&c tomorrow depending if there's anything left of my first pregnancy left.... just keep asking why? is it cause I got pregnant on the first try of clomid? is it cause I caught the flu the week of my miscarriage? is it cause I drank decaf? what did I do wrong?