The only reason to hold on to it at this point is Western chauvinism. The rest of Europe has long given up its colonial holdings in Africa. Why are Spaniards holding on to this relic that causes nothing but trouble? Just let the Africans have Africa.
Same logic applies to Gibraltar (just let the Spanish have Spain) and the Falklands (just let the Argentines have Argentina) fwiw. All these little colonial outposts cause nothing but trouble and only still exist because of chauvinism