What causes a Chemical Pregnancy ?

Kiara • Hello my name is Kiara I`m 21 years old my Husband and I live together and I`ve been TTC for 5months
I think I had a chemical pregnancy last month , I was wondering if any one could help me understand what causes this ? Please Help