Wondering what I did wrong!

Rod

A week ago I found out I was pregnant and was super excited no I was not trying it happened. Today I wake up in pain and want to the bathroom to pee only to see blood. I want straight to the ER. The doctor told me I was miscarrying. I cried this the fourth one I ever had. Me and my husband picked out names and everything we was so so excited. Now I seat in pain thinking what I do wrong. Now I was to try for another because I loss this one.