Don't worry, that's meant to happen. Read your Apple doc to get more info.
Basically, your laptop is trying to stop itself from frying your battery, so it doesn't constantly put power to your laptop. (Not a very good explanation I know, but the best I can give)