Isn't NaOH part of the soap?
It’s dangerous because you’re also partially made of significant amounts of fats (and other things), which gets very very painful and can make it somewhat difficult to continue living when they get turned to soap while still part of you.
In the production of soap, it is used to break down the fats used rather than being part of the soap.