I’m not sure why it happens exactly, but somehow, with the baby growing inside you, your body cannot break down the sugar that you take in well/fast enough, causing the diabetes. A small group of people also get diabetes permanently after gestational diabetes, which is why you should repeat the test about 6 weeks after you deliver.