Upvote:5
Long story short:
I can be wrong, but as a Spanish citizen I would say that Spain retains these cities mostly because of their strategic value (cf. Gibraltar), and because there is also some psychological involvement (cf. Serbs and Kosovo).