While I can't begin to provide any worthwhile answer I can give some tips that will allow others to better respond.
Please provide the following if possible:
1. What kind of battery is in question here, and or what model of PV is it for?
2. What kind of charger is being used (pcc, wall charger, brand etc.
3. How old is the battery and charger in question?
4. Do you have other
batteries charged on the same charger that perform better than the problem one?
The more detailed the information you can provide up front will generally result in a more accurate answer in the end.
In an effort to answer your question with the data provided I can only state that any battery that is in good working order should hold a charge once it is removed from a charger for some time (much longer than 2 hours)
It may also be possible that something occured such as but not limited to the folowing:
Leaving the battery on the charger after it was charged resulted in it discharging while still in the charger, and actually being drained when you removed it.
The battery itself is simply faulty, at or near end of life, about to give up the ghost, dead etc.
The charger and battery may both be fine, but the battery was inadvertantly activated and discharged after it was removed from the charger via having its button pressed if a manual or being exposed to noise/vibration of it is an auto.
The LED on the battery is malfuntioning and actualy still charged ( or not!)
Some other freak event I am not clever enough to think about just now
