Most companies also want to maintain a healthy separation between internal and external counsel so that they can keep certain kinds of communications privileged and avoid awkward situations where an attorney who is both an employee and legal advisor to a company might be subpoenaed for a deposition (basically any time a lawsuit happens, any corporate employee with knowledge can potentially become subject to deposition as a fact witness). You basically never want your in-court lawyer to be deposed for any reason.
That said, there are some companies who look into this kind of stuff for smaller matters - small corporate disputes, collections of accounts receivables, and whatnot - oftentimes are now being done in-house even if they involve some in-court matters. It still doesn't seem to make sense for big files though.