Rechargeable battery Backup circuit
The resistor limits the charge current, but when the battery's in use, you don't want to limit discharge current the same way - you want the battery to be a low impedance source for the circuit it's powering. The diode bypasses the charge-limiting resistor so it can discharge a lot faster (and more efficiently) than it charges.