Well, you pay taxes when you realize the gain (i.e. when you sell the shares). Until then, it is only theoretical and there is nothing to tax (the share price can also go down, not only up).
Another POV is, that when company pays dividends, they are not sure what to do with the money, they have nothing interesting in pipeline and therefore they can not provide better return on investment than the investors individually can.