Castor oil to induce labor

Why do I see so many videos or women drinking the castor oil or mothers brew to induce labor is it really safe ?

SN: I don’t plan on doing it just was curious on why so many people are doing it with the risk I had a friend who did it and I told her not to and she dint listen and her baby had something I forgot what it was called