There could be situations where gaining access to material nonpublic information might be illegal standing alone, but the SEC regulations only apply to using it to trade. That can include passing it on to others who use it to trade.
As someone else noted, corporate insiders have routine access to nonpublic information. They only violate the law if they trade on it or otherwise misuse it.