Any ideas why gallstones cause gastric pain?

Yes. Gallstones cause pain usually right upper abdomen or upper middle abdomen. The gallbladder squeezes to release the bile when you eat and it causes pain.