It basically boils down to a simple law of physics: the greater the difference in temperature between inside and out, the faster heat will move between the two.

Therefore setting the thermostat for a lessor difference in temperature (between inside and out) will slow down the transfer (loss or gain) of heat, saving energy by reducing the need for the heater (or AC cooler) to be run to make up for the transfer.