For comparison, the energy density of gasoline is around 32 MJ/L, which is not quite nine times as much.
Of course, to turn gasoline into electricity requires heavy, bulky, noisy rotating equipment that weighs a lot, is dirty, vibrates, and ejects red-hot poison gas. A battery requires none of that.
Energy density info source.