Usually you are dehydrated or have other issues. Sometimes it's the ride itself but that is very rare. It's more like a symptom that something is wrong than a thing to worry about specifically. Experiencing one or two from time to time on particularly high-g coasters is normal though.