The shoulder is often a site of referred pain that actually originates from the diaphragm, lungs, pleura, etc. If the pain comes with exertion, and then doesn't persist after or occur when doing other activities, then it is most likely not from the shoulder or musculoskeletal chain.