It is an international border. There are costs associated with clearing customs (brokerage)... they are simply passing those costs on... with a markup.
I have numerous shipments coming in from the US via UPS every week. I do not use UPS' brokerage service as we have our preferred customs broker.
For me, brokerage is just a cost of doing business... which I also mark up and pass on to my customers
Unfortunately UPS and other shipping companies charge fees that can add 50% or more of the items cost.
As for Amazon, the customs fees are usually estimated and included as part of the shipping cost.

