This is not correct - companies do have lawyers on payroll who practice corporate law, but when it comes to these they hire expert counsel (in this case antitrust, patent). They would also pick lawyers according to the jurisdiction.
You do not become a good lawyer fighting one company's cases, you'd go stale without the practice.
It's like having a GP, and you got a heart condition. You'd ask your GP, it looks like you need surgery, you get a consultant cardiologist.
It costs more, but you need the specialist.