scheduled induction before 37 weeks?

I have an acquaintance on social media who, according to the due dates and timelines she has posted, will only be 36 weeks and 4 days when she's scheduled her induction. They've scheduled it almost 3 weeks in advance. I thought this was illegal unless there was absolute medical cause? I'm honestly just trying to learn more