It is shown that Hamilton-s principle of classical mechanics can be derived from the relativistic invariance of the generalized spacetime Fisher information corresponding to the statistical description of results of measurement of the coordinates and the motion in space by means of the probability density and probability density current.