> The government sector doesn't produce virtually anything that counts toward GDP…
By a very narrow, technically-correct view, sure.
Preventing, say, people starving to death, dying of preventable disease, unchecked fraud, invasions by other countries, etc. probably helps GDP a bit.