Abortion laws vary across Mexico, but the state where the women were convicted takes a hardline stance. The conservative state Guanajuato won't enforce a federal law against gender violence, and although it has a high rate of teen pregnancy, sex ed is not taught in its schools. The mayor even attempted to outlaw passionate kissing in public.
If you think something like this could never happen here, consider the fact that a majority of Americans now consider themselves "pro-life." Of course, different views regarding the legality of abortion can live within the pro-life designation. For example, someone who considers herself pro-life may want it legal in case of rape or incest, or to punish the doctors, not the women, while another pro-life person may want women who have abortions to go to prison. Could you imagine something like this happening in the US?