Why do people have hicups?

There ribcage has spasms. And the hic-cup is the result.