Earbud batteries are tiny and wear out after about two to three years of daily use.
To make them last:
1. Keep them in the case when not in use, but don't leave the case flat for weeks.
2. Avoid heat: car dashboards and direct sun damage the batteries quickly.
3. Turn off noise cancelling when you don't need it.
4. Lower the volume a little. It saves battery and your ears.
5. Update the earbuds' software.
When battery life is very short, the batteries are usually worn out. Most earbuds can't have their batteries replaced, so check your warranty first.