Why does gestational diabetes increases a woman's risk of type 2 diabetes later?

I know GDM does increase your risk for type 2 diabetes, and I would like to know why and how it happens. Searched the web and couldn't find an answer.

Please give me an explanation.

Thanks heaps.