Suppose a ball is falling from a high point and we stop it midway using a plank.
Now the plank only affected the KE and total energy of the ball but not its PE.
The same way, resistance is a physical obstruction to the path of an electron which slows it down and is losing its kinetic energy but its potential energy should remain unaffected.
Now voltage is the measurement of the potential energy at a point.
Then why do we say there is a voltage drop across a resistor when the potential should be the same at both points (across the resistor)?