If the object is at rest it would imply that gravity transfer heat without an increase in potential energy, and there are no other forces that produce work. This would violate the conservation of energy.