The programs estimate grade by interpolating contour maps which are often at 5 ft intervals or by changes in pressure if you have a bariometric altimeter. You are probably using a total station, some sort of level, or accelerometer to calculate grade which is a direct measurement.