Its not just intestinal gas/air then ends up in the shoulders. For example, after surgery anywhere on the torso, patients often end up with shoulder pain due to air in the abdominal cavity working its way up.
Its like having trapped wind but higherup. Why it ends up in the muscles in particular I dont know. Are not muscles an absorbant type of tisse stucture?