Poor spine mobility or a lack of shoulder symmetry can be just two of the causes of discomfort in the shoulder and neck joints when swimming

When you lift the arm out of the water in the front crawl stroke if you don’t have rotation in the thoracic spine the shoulder will suffer.

Again a top to toe Biomechanics Assessment can find these before they become a problem.