There is a difference between swimming and running. Swimming and running are both sports. Running is exercise. Running and swimming help to burn a lot of calories that is in your body. Running can burn a lot of calories, more than walking. Swimming too, but running burns more. Both will help you make muscle.
Shoulder pain is a big problem for swimmers. The pain makes your shoulder sore from time to time. It takes time to recover.