From the purposes of grid operation, batteries serve both generating and load functions.
Having a complete catalog of generating capacity is a standard metric that EIA tracks. So even though batteries can also consume from the grid, it really does make sense to add them to the list of "generation," at least according to the purpose that this generation metric has always served.