Gibraltar is not the most expensive place to visit, but it is also not the cheapest. The first thing to note is that Gibraltar is a British Overseas Territory and has prices more comparable to the British rather than their Spanish neighbors.
Gibraltar enjoys a special status, is a duty-free British territory. This means that any purchase here is cheaper than in any other country where taxes are imposed upon the import and export and licensing of a product.