A jāʾifah is a wound penetrating into an internal body cavity, not a minor cut or a superficial abrasion. The distinctive feature is the depth of the wound.
In the relevant case medicine is applied to such a wound and reaches the internal cavity. One should not extend the statement mechanically to ordinary ointment placed on intact skin; both the wound’s character and the described arrival of medication matter.