Gassy baby question

le

Hi mamas, you know everything. My question is why baby is making all of these sounds/screams and moves when he’s gassy, but once you move him to your chest he immediately stops. He might throw me a few faces, but overall seems much more relaxed and naps well. Is his stomach not bothering him when it’s warm anymore? Any ideas? Trying to solve this puzzle :)