The reason is that the customs officials are complying with the law of the country. You have no influence to change that law, one which complies with international conventions. You may not like it, I don't, but if you want to operate to and from there you will lower your blood pressure by just accepting that that's the way they do it .
IATA Mexico