The difference of course being that Gibraltar used to be Spanish, while Ceuta and Melilla never have been parts of Morocco. Portugal has more claim to those two enclaves than Morocco ever did.