It would seem that the pirates raid the wreckage of your mining operation and take all the processed materials, metal, and weapons so they don't have to do the mining themselves.
A good strategy used often in the walkthrough is to start from the end of the map and move toward the front. Level up your soldiers as you go, or they won't get enough exp later on.
i will be revamping the pilot view soon.