Miscarriage what could cause it

Md
I had a miscarriage at 13 weeks ... What could have caused it ... Baby was fine .. I've not made t to doctor for testing yet ...