http://en.wikipedia.org/wiki/Fibrodysplasia_ossificans_progressiva
Basically, when your muscles are damaged your body grows bone instead of replacement muscle tissue.
Fibrodysplasia ossificans progressiva (FOP) is an extremely rare disease of the connective tissue. A mutation of the body's repair mechanism causes fibrous tissue (including muscle, tendon, and ligament) to be ossified when damaged. In many cases, injuries can cause joints to become permanently frozen in place. Surgical removal of the extra bone growths has been shown to cause the body to "repair" the affected area with more bone.[1]
Basically, when your muscles are damaged your body grows bone instead of replacement muscle tissue.