The merchant was clearly really rich (having the bathtub and all) so he probably had access to soap bars of atleast somewhat good quality (might be wrong, I really don't know much about medieval soap, but also it's a magical world, so they could have expensive magical soap of just as good of a quality as the current soap here on earth).