Sometimes a MC will happen for no apparent reason and can even be recurrent (happen more than once). Other times, there is a medical condition which causes a MC and a women can often be helped with treatment. See your doctor for an evaluation to see which scenario applies in your case.
It could be some chromosome abnormality or just unexplained. U should talk with a specialist to see if u can get answers. I'm sorry for your losses