Since, mass of an object is the amount of matter contained in the object and as we know that going deep inside the earth will not change the amount of matter contained in the object, so mass remains constant.
In fact mass of an object always remains constant and does not change from one place to another.
On the other hand, weight of an object is the force with which earth pulls an object towards its center.
W=m×g