How to make it so that your object doesn't move when you resize it
Looks like the origin of your cube is still at the world origin, but your cube object itself is above the surface.
You can reset the object origin: Select the cube, go to Object menu, select Set Origin, then select Origin to Geometry.
Should solve your problem.
HTH