The average volumetric thermal energy density of the sun is a red herring. The vast majority of the mass of the Sun isn't fusing at any given moment; most of the gas contributes only by applying gravitational pressure, a conspicuously inefficient method for achieving fusion pressures, volumetrically speaking - particularly when the gas in question is hydrogen, the lightest element that can exist.