The base is not some favor to Spain. Who does Spain even need defending from? It is a means of regional power projection for the US, granted to them for free as a favor. They've been very ungracious guests lately.