Israel is a crucial ally in the oil rich and unstable Middle East. If Israel were to fall, or stop cooperating with the US, our foreign policy would be strongly affected.
I wouldn't say its importance is on par with defending global shipping, but it really is up there. That's not to say we, or they, are doing it well. But it's not just a whim on our part.