In object mode, the object origin (the pink dot) moves as well. In edit mode, it doesn't. The point is that if you want the origin to stay in a certain place, you could move all the elements in edit mode without affecting object origin location.