Original: Since the pressure gradient normal to the flow within a boundary layer is approximately zero for low to moderate hypersonic Mach numbers, the increase of temperature through the boundary layer coincides with a decrease in density.
Simplified: Because the pressure gradient normal to the flow within a boundary layer is zero, the increase of temperature through the boundary layer causes the density to fall.