The point is that any money that exits a corporation gets taxed again somewhere.
So if a company does really well one year and makes a profit, it gets taxed on that profit even if it keeps it in the bank. Then they use that remaining profit to pay payroll next year and then employees or owners get taxed again.
But your point on double-taxation is certainly valid in some contexts.
Franking credits minimise the double taxation issue in these instances.
Double taxation is the concept where a dollar could, in theory, be taxed at over 100% from the aggregation of taxes owed on it. There are to my knowledge only two real examples of double taxation in America. The first happens due to the new cap on SALT deductions. The second is with regards to FICA taxes.
Oversimplified:
Profit = $Revenue - $Expenses
Tax = $profit % $Tax_rate
Correct me if I'm wrong, but I think payroll expenses are not a part of profit, so no double taxation here.