Forgive my ignorance, but how does a country with a strong military turn that into GDP? I don't understand how military > manufacturing in terms of GDP. In my mind, manufacturing > military, but my knowledge of economics isn't great.
GDP includes government spending. If a country spends a lot of money on military, that reflects in GDP figures.
Malinvested money will pump GDP for a few years before growth stops and potentially reverses.