Hard to explain, but..
When the ignition is turned on, flick your sidelights on and the headlight bulbs come on very dim WITH the 5w sidelight bulbs, when you put your lights on, the headlight bulbs get brighter.
Removing the resistor will stop the headlight bulbs coming on dim, meaning that when you switch your sidelights on, only the 5w bulbs will light up.