Government benefits through one, generating employment - direct and indirect employment, raising taxes through personal taxes (indirectly impacting tax collection) or second the country being at the forefront of the innovation etc. That is how average tax payer was supposed to benefit.
But I guess trying to nationalize companies and "benefiting" from company profits was something people were missing. How did no one see that? Ah yes, third world countries try this routinely for "national security" and it always leads to moral hazard pointed out by the person above you.