Under some conditions coconut oil can become a surfactant. Considering that your product is a soap bar there is sodium hydroxide added to the formulation. This ingredient is a caustic lye used to convert plant fat into foaming soap.