Why don’t all companies choose to do so-What are the risks-What are the benefits?

Answer the following questions. cite all sources used, do not use Wikipedia.
Assignment: It’s said that going public is the ‘dream come true’ moment for private companies. If taking a company public is such a good idea, why don’t all companies choose to do so? What are the risks? What are the benefits?