Why tax is principal source of revenue?

In countries with other revenues as governmental owned oil reserves or other resources, the only available revenue for the government is the collected taxes to pay for governmental expenses and salaries and to offer social and medical and educational services.