What is gripe water...

So this might be a dumb question, but I'm a FTM so I need a little help!! Was at the store looking at all the medications and saw several different types of "gripe water" what exactly is this and what does it do?? And is it something I need to purchase?