You may want to read more than the first sentence next time, since I said there was a resistor in there.
The LED is designed to work at a given voltage - which can vary from led to led depending on type and colour selection. So we want to deliver the correct voltage to the LED from a standard battery/power cell.
The resistor method drops the potential difference across the LED to the desired value by putting the correct value resistor in the circuit for the battery voltage and the required voltage that the LED needs. It is a system that works but it's not particularly energy efficient.
The buck puck works in a different way. It electronically controls the voltage being delivered to the LED by using an induction based voltage controller so that the LED gets the voltage it demands without wasting so much energy as heat (like the resistor method) so your battery will last longer.