Here we have a wire. At both ends there is an equal and opposite field caused by a chemical reaction. So, if we decrease or increase the distance between the two points, the strength of the field increases/decreases with the square of distance. Why then is resistance linearly proportional to distance then?