Changing object dimensions along Y axis - scales Z axis
This is because the object is rotated 90&deg; around the X axis.

So blender is scaling the object around the local Z, then rotating the object so that the local Z is aligned with the global Y.

To fix this, apply the rotation with &#9096; CtrlA> Rotation.