When you're hungry, the hydrochloric acid in your empty stomach can slosh about and hit the lower oesophageal sphincter (the valve that holds the top of your stomach closed). This is also what happens when you throw up, and it triggers similar feelings of nausea.