Yahoo's stock is worth 20 billion. You can acquire companies for stock and cash. When a company is public, you can acquire more easily in exchange for stock.
Mark Cuban became a billionaire from his Yahoo stock he got from the acquisition of broadcast.com.