Why does Spain care about this peninsula?

Peñon de Veléz de La Gomera (I think I put the accent in the right spot??) juts off the coast of Morocco. It's tiny and the only inhabitants are military personnel, so why is "Spanish Badis" still occupied? Surely it takes more resources to keep than it provides.

Peñon de Veléz de La Gomera (I think I put the accent in the right spot??) juts off the coast of Morocco. It's tiny and the only inhabitants are military personnel, so why is "Spanish Badis" still occupied? Surely it takes more resources to keep than it provides.