Earlier quoted context omitted.
Gasoline has 10x the energy (MJ/Kg) than TNT, but it's not a "bomb". Being a "bomb" is about energy release rate . A battery is still controlled by its chemistry.
Liquid gasoline does not have anywhere near the energy of TNT, or even a battery for that matter. It contains basically zero releasable energy. It needs oxygen or another oxidizer to react with to actually release any energy. TNT and batteries' energy density calculations include the oxidizer and the oxidizer is in close proximity to the fuel (molecularly so in the case of TNT). If you 10x the "energy content" of gas…
The fuels which afford the highest rates of storage tend to release it more slowly. Chemical explosives typically have about 1/10 the energy storage capacity (by mass) of fuels, as several people have pointed out.
Similar relationships exist for other forms of energy storage. For electricity, fuel cells, chemical cells ("batteries"), flywheel / reaction storage, and capacitors tend to offer a trade-off between total storage capacity and reaction time. Capacitors can react at intra-phase rates (that is, within a single 60Hz power cycle), whilst batteries and flywheels can take longer to come online.
See for example: "Battery Parameters" https://www.monolithicpower.com/en/learning/mpscholar/batter...>.