There are trade secrets in code. Most people vastly overestimate the value of their secrets, but they definitely exist.
Pasting your code into OpenAI is definitely giving people outside of the company access who have not entered into agreements to leak it (intentionally or not).