It was actually one of the first countries in the world to pass an abortion law, back in 1948.
But it was part of the Eugenics Protection Law - yes, it really was called that. It had nothing to do with giving women more control over their reproductive health. Rather, it was about preventing "inferior" births.
Article 1 of the law says: "To prevent birth of inferior descendants from the eugenics point of view and to protect the life and health of the mother as well." The Eugenics Protection Law was renamed and updated in 1996, when it became the Maternal Health Protection Law.