

In a vertical motion of an object, we take gravitational acceleration g constant, because the maximum height we consider in our numerical problems are not so high.
Yes its true that the value of g changes when we go high or go in depth of the earth,but this change in g actually comes for higher altitudes.
