Government contracts are a very profitable opportunity for any sized business. Companies get these contracts by first bidding on them. If won, the chosen company may need to outsource help in completing the job.
For the most part, a teaming agreement will involve a single large company as the primary contractor and the companies working for them as the subcontractors.