Corporations are legal persons, and income accruing to distinct legal persons is subject to tax. E.g. I get paid by my employer, and then pay tax on that. Then I pay my nanny with post-tax dollars, and she pays tax on that. That's not "double taxation"--just the nature of an income tax.
Imagine that instead of forming a corporation, a bunch of investors nominated Bob to be the legal entity in charge of the whole business. Bob held all the bank accounts, directly employed everyone, and booked all revenue minus his expenses as his income. A series of contractual arrangements required Bob to pay out the profits to the investors. Under that circumstance, there would be no doubt that profits would be taxed when they initially accrued to Bob, then again when he paid the investors.
It should be noted that nothing precludes companies from organizing as something other than a corporation. Partnership income, for example, is only taxed when it is received by a partner.
The distinction is that the tax system does not give a deduction to individuals who are spending their money on personal "consumptive" reasons. By and large, the system does give deductions for expenses incurred for business.
In this light, the double taxation of corporations is unusual. Clearly, the dividends are to pay back investors, just as interest is part of paying back lenders. But interest is deductible; why not dividends? Many theories have been advanced to justify this double tax, but none have won wide support among scholars.
(Interestingly, in your example, what probably would happen is that Bob would essentially be the effective managing partner of a general partnership. So we would be under partnership tax rules.)
A last quibble: partnership tax actually taxes partners even while the income is held by the partnership. (Well, generally; there apparently are some odd trust schemes that sort of avoid this.) in general, Partnerships must allocate the income to the partners, who bear the burden of tax. Then, they must later distribute the income in accord with how they've allocated it.
A corporation has effectively only a few things to do with their revenue which are or can be directly taxed more effectively.
It can hire more people, or pay it's employees more, which means that money is taxed as income.
It can invest the money directly which means that return on that investment can be taxed as capital gains.
It can pay out dividends to it's shareholders which means that this money can again be taxed directly as capital gains.
It can invest that money internally to expand which again can be taxed at various levels, sales tax, income tax, property tax etc.