How come gas burners don't melt?
That is the temperature of the hottest part of the flame. Here is a useful picture from SE that shows temperatures for a candle flame:



Here is a diagram for a gas flame showing how the temperature changes by region. Only the hottest point in the center is at the claimed maximum: