I'm not sure what you think the "offering" in "initial public offering" means. It is literally the company offering shares to the public...to raise money for the company.
The alternative is a direct listing, where you just list your existing shares on a stock exchange.
Anthropic is expected to raise ca. $100b in their IPO. SpaceX raised $75b. Where did you get the idea that most IPOs aren't raising money?