It may be anything from overuse or excess exercise
to a viral infection. Myositis
in the muscles. This can potentially be a much more serious condition with long term health consequences. You need to be seen by a physician to determine which is present. Myositis is characterized by elevation
of muscle enzymes in the blood due to the inflammation.