The specific heat capacity of a body depends on

The specific heat capacity of a body is defined as the amount of heat required to raise temperature of unit mass of a substance by one unit.

Now, heat capacity of a body varies due to variations in its molecular structure and hence the material of the body.

1