I was walking home the other day past the hotel on my street where I heard a tourist yelling at a Moroccan guy about the price of a taxi. She was sure that 150 dirhams for the taxi from the airport was 10 times the real price. Actually, it's the going price and there was probably more than one person in their party since they were tourists. The hotel clerk was being very polite and patient with a type of rudeness he must encounter frequently.
Morocco is not a free country. Yes, that's exactly what I said. Things cost money here just like everywhere else and increasingly, the prices are becoming more like those in Europe. Gone are the days of wandering around for pennies a day while mooching off the hospitality of locals. Moroccans are still hospitable and generous to a fault at home, but if you want that trinket or you eat in a restaurant or crave that maqooda dumpling, it's going to cost you more than a dirham or two or three.
It's the same when you have something shipped into the country. There are customs taxes on certain items and EVERY country has this, not just Morocco. Other countries have more severe restrictions on what can be shipped in order to prevent competition with their local businesses. In many cases, when you are reasonable and nice, and haven't shipped in a new computer or high-priced sneakers or whatever, the authorities just look the other way and send you on your way.
But, it's their call, not yours.