See for example this circuit
The resistor shown has a "potential difference" of 10V across it. Now we know that this refers to the work done per unit charge... The change in energy per unit charge. The name implies that the type of this energy is electric potential energy, but is this really the case? Electric potential energy is energy due to the position of a charge in the electric field so that means the only factor affecting it is the distance of the charge from the positive terminal, that means the drop in electrical potential energy for will be uniform as it moves through the length of the circuit regardless of whether or not passing through a resistor.
To further clarify my question, imagine an object falling in a uniform gravitational field. This rock will lose, say, 5J of gravitational potential energy for every 10m that it falls. Comparing this scenario with that of the electron... Shouldn't the electron lose some fixed quantity (E) of energy for every distance (x) that it moves through the circuit? Why is it that the greatest drop of electrical potential energy occurs in the resistor even if it doesn't cover that much distance?