the pain isnt actually in your chest. Its a result of some of your larger nerves that go through a lot of your body. One in particular goes from your sstomach past your heart. this is generally what creates the vague chest pains associated with stomach problems. The nerves are reporting general pain, and that message can be a bit imprecise at times. Especially when its a small amount of pain distributed over a large area.