The oil / gas well is not just a hole in the ground, it's a tubular, cemented into the strata way down below. The upward movement is due to thermal and pressure expansion of the well string. Dependent on the depth of the well, expansion can be around 300mm. Ignore this at your peril. Note that in certain circumstances there can be a net downward movement.