If by "it's not", you mean that the percentage of charge keeps going down even though the charger is plugged in, the tablet draws a fixed amount of current from the charger, whether you're playing a game that uses a lot of current or the tablet is turned off. Needing more current and drawing more current aren't the same thing. So even with a new device, if you're using more current than the device was designed to draw, the charge will keep decreasing with the charger plugged in - just more slowly than if the charger isn't plugged in.
That said, an old battery, especially if you normally drain it to less than 40%, probably can't handle the same amount of current as it did when it was new, so even with no apps running (except the launcher, which creates your home screen) and the screen off, the tablet could be drawing more current than the "charging current" coming from the charger, so the rest has to be supplied by the battery, resulting in a net discharge.
That, and the fact that something in the tablet is getting hot, could indicate that the battery is about shot and has to be replaced. So if you can't find a replacement battery, and open the tablet, replace the battery and put the tablet together again, it may not pay to repair it - that depends on the repair cost vs. the price of a new similar one. (I see the 7" model selling for $35 at Walmart, and most tablet batteries are close to that in price for just the battery alone.)