Indeed, if you reinvest almost all your profits in the business instead of taking them as earnings you pay very little in taxes. Taxing investment would be a very stupid thing to do since it would discourage what makes society richer in the long run.