That's absolutely invalid comparison in a country where military has unprecedented overreach usually by force. The comparison also does not make sense, when half of its entire history is ruled directly by draconian military dictators likes of Yahya, Zia.
Secondly, What are facilities / infrastructure available to private companies in Pakistan? Do they get free land, free electricity, free perks that military takes from national budget ? Military organisations are paid by people of Pakistan. If a military organisation with 100,000 employees do not make a single sale, even than the employees will not be fired but are responsibility of the state. With the kind of overreach, budget and facilities available to military, they should have been many times better in terms of productivity and exports.
Lastly, you can make such comparisons in non-security states where military abides the constitution and has limited overreach. You can't do it when you spend 1 dollars on education, investment facilities