Gigantic multinational megaconglomerates are, well, huge. They may operate under the same overall banner, but operationally they tend to be almost fully independent entities. Many are legally distinct corporations with their own finances, budgets, and operations.
Apple employing the component manufacturing arm of Samsung can occur simultaneously with Apple suing the consumer device design arm.