Strictly this Problem's solution is not actually about gravity, it is about a constant downwards force (the ball's time-independent path does not depend on the magnitude of the force, only direction). The phrasing for the solution is a shorthand that takes advantage of human physical intuition.