Gripe Water Helping With Constipation?

𝙲𝚊

Does gripe water seem to help anyone else’s baby with constipation? I’ve noticed whenever my daughter has a hard time going or if her poo is just too hard for her if I give her about 2mL of gripe water (though the bottle says I should be giving her 5mL) it softens her poop up enough for her to be able to go again normally. Is this a “side effect” that can be a benefit or is it just a coincidence ?