Most likely the alternator has failed and the car ran off the battery voltage until it died.
Get the battery charged and tested first, because it will need to be charged anyway. Once you have a known good battery, you can have the alternator tested. It's possible that a failed alternator has also killed the battery, it happens quite often.