Why is my sump pump still beeping after I replaced the battery?
These things have a battery AND a battery charger. You wanted to verify why the battery went dead. If the charger is not working (or maybe is not even plugged in?) then the new battery will die too.

Check that power is getting to it. Check that the charger is working. Check all connections.