There is, in fact, such a device and it is used in a lot of battery operated products like cell phones, portable computers, and more. The device is a DC-DC converter that takes power in at a steadily decreasing rate while it provides a reliable and steady output voltage. This is necessary to keep the electronics operating in a predictable way. Without it, the circuitry would become unstable and a characteristic failure mode would become apparent.