The direct cause of the heat is that, under high pressure, the air subsides (sinks) toward the surface.
This heat wave, like all extreme weather events, has its direct cause in a complex set of atmospheric conditions that produce short-term weather.