The cargo aircraft at PIK are not there solely for delivering cargo to Prestwick, they only stop there then carry on elsewhere to their finla destination, normally somewhere in the US.
Plus, as well as all EDI’s dedicated cargo flights, a lot of the passenger flights will be carrying cargo in the hold.