The Mediterranean is the only waterway available to Israel, after the closure of the Hormuz and the gulf of Aiden.
Spain controls the strait of Gibraltar, for which Queta is the gate. They can influence Israeli policy by threatening to close that gate.
Israel didn't like that. Hence the stunt in Morocco which is coordinated by their allies in the moroccan regime.
- Another representation of how holding Cueta is holding the door of the Gibraltar strait.

