Steroids for baby lung development

Repeat

Hi, I am 27 weeks and 3 days today.I am obese weigh 100 kgs(BMI 41). I have no complications. No high BP or gestational diabetes. Everything on my report is normal. My <a href="https://play.google.com/store/apps/details?id=com.glow.android.baby">baby development</a> corresponds to the gestational week.Its a healthy baby. In my last visit to Ob/gyn, he said I will have to take two steroid injection for lung development of my baby. He said it's good if I do so. I am confused. Does everyone take this? I m wondering why I was suggested to take it. Kindly reply. If you have been given these.