The principle job of customs, in the UK Her Majesty's Revenue & Customs, formerly the inland revenue, is to raise revenue.
Goods bought outside the EU can be bought without sales tax (VAT,) ie duty free, if they are to be exported, but are subject to duty on arrival in the UK.
All countries...