Speaker batteries wear like phone batteries. A little care makes them last years.
1. Charge it every month or two even if you don't use it. A battery left empty for long may never charge again.
2. Store it about half charged.
3. Avoid leaving it in a hot car or full sun.
4. Don't play at full volume all the time: it drains the battery fast and heats it.
5. Use a normal 5V charger unless the maker says fast charging is supported.
If battery life is very short or the case is bulging, the battery needs replacing.