Because, in general, the state of matter reacts to heat in various ways. For example, at room temperature water is liquid. RemoveRemove the heat sufficiently from water &and at some point (i.e. the freezing point) it will become solid (i.e. ice). ReheatReheat the ice &and it becomes liquid again. AddAdd even more heat &and it becomes a gas. IfIf you keep adding more heat, eventually it will reach a plasma state.
Why a stone is solid and water is liquid (or they are both solid) at various temperatures occurs because different atoms have different reactions to other atoms &and conditions within which they exist. It'sIt's a bit like asking why 2two different people think differently under the same conditions/circumstances--even – even though both are human, that which makes them different from each other is involved in why both do not react in the same manner.