The work done by the gravitational force acting on the body is zero because the force acts vertically downward, while the displacement is horizontal. Since the force and displacement are perpendicular to each other, no work is done by gravity in this case.
