Gravity is a gauge theory because its predictions stay the same when measurements are taken from different baselines. For instance, a ball on a staircase has gravitational potential energy. If it moves down a step its loss in energy depends only on the strength of the gravitational field and the height dropped. You can measure its gravitational potential energy from anywhere (earth's surface, another step, Alpha Centauri...) and the difference in energy between the two steps 'stays the same'. This global invariance in the measurement procedure makes gravity a gauge theory, i.e. a field theory showing gauge symmetry.