It could be a bad battery, which I think would be the most likely culprit. It could also be a bad charger. And it could be a few other things.
I would, however, start with the battery.
If the tablet is under warranty still, contact the manufacturer about a repair or replacement. If it isn't under warranty, then you can try replacing the battery yourself, or take it to someone who can do it for you.