With the same rate on both forms of income, the tax code doesn't bias corporate decisions on whether to retain and reinvest profits (and allow the earnings to be capitalized into the stock price), or distribute the money as dividends at the time they are earned.
When they do, the profits are recorded on their financial statements here, and the future cash flow from those investments is capitalized into their value on our stock market.