Pakistani Governments are notorious about handing contracts out to Foreign Countries even when technology exists in the Country because if they give contracts to local firms and they are bribed, that information is bound to come out sooner or later and usually there is a audit Trail. Also, Pakistani Courts can demand records at a later date.
By giving Contracts to the foreign firms they can get bribed in Foreign Countries and our Courts have no Juridiction to ask for records in a Foreign country from those foreign entities that bribed these Pakistani officials.
I know of one such case where a contract was assigned to upgrade the Pakistani Customs site and heavy Bribe was paid to PM Shaukat Aziz. The Software house from Dubai came to Pakistan to hire Programmers to get the job done. The contract was done at four times the price and everybody was happy.
We are one of the World's most Corrupt Nations on God's green Earth. Why do you think Erdogan calls Pakistan his second Home ????