The answer is to safeguard domestic industries from foreign competition.
Tariffs are normally levied by domestic governments to safeguard new industries from foreign competition, to defend aging industries from foreign competition, to defend against foreign companies selling their products for a price lower than their expenditures and to make revenue.