OS X Mavericks has been designed to optimize your Mac. Whether it’s an older Mac or a new one, a desktop or a laptop: Mavericks just makes everything work better.
One feature that helps in the effort to keep your battery from running out as fast as it could is App Nap, a way for your Macbook to put the apps that aren’t being actively used on a low-energy mode, which consumes less power, and helps your battery stay fuller, longer.
However, you can also turn this feature off for a specific app that you want to run at full power all the time.