The article also doesn't say that it's $3B in cash that OpenAI is spending. They might be giving Windsurf $3B worth of OpenAI shares - paying an inflated value for Windsurf with their own inflated value.
OpenAI just had a fundraising round that put them at $300B. Maybe they're just giving Windsurf 1% of OpenAI. Maybe they're even giving less than 1% - if OpenAI was worth $300B at the end of March and $150B last October, maybe they're worth $400B now. Maybe Windsurf is getting 0.75% of OpenAI that's "valued" at $3B.