Miscarriage

What are the main reasons thought for a miscarriage? Not knowing we're expecting, or not changing lifestyles and habits?