Why does celiac disease lead to fertility problems in women with undiagnosed celiac disease?

When women with celiac disease eat gluten the immune system attacks the placenta.