Most businesses want to grow, and there are a variety of ways to raise the money needed to hire new employees and otherwise invest in the business to increase the rate of that growth. You as a stock holder should hope that management is choosing the least expensive option for growth.
Some of the options are debt, selling equity to venture capitalists, or selling equity on the open market (going public).
If they choose debt, they pay interest on that debt.
If they choose to sell equity to venture capitalists, then your shares get diluted, but hopefully the growth makes up for some of that dilution.
If they choose to go public, dilution is still a concern, but the terms are usually a little more favorable for the company selling because the market is so liquid.
In the US, current regulations for publicly traded companies cost somewhere in the neighborhood of $1M/year, so that's the rule of thumb for considering whether going public makes sense when calculating the cost of fundraising, but as mentioned, regulations make it less advantageous for executives who choose to sell their shares after the company goes public. (They can't sell when good spot prices appear.) Going public is often considered the next step for a company that has grown past the initial venture funding phase, but if cash-flow is good, plenty of companies decide to just reinvest profits and skip the equity markets altogether.