The information provided here is not a replacement for a doctor. You shouldn't use it for the purpose of self-diagnosing or self-medicating but rather so you can have a more informed discussion with a professional TCM practitioner.
Because it is a herb specifically indicated to treat abdominal pain due to parasites as can be seen on Carpesium Fruit's page.
Carpesium Fruits is a Neutral herb that tastes Bitter and Pungent. It targets the Spleen and the Stomach.
Its main actions are: Kills parasites and alleviates pain.