The reason that the electronic jellyfish worked as a lure is not because giant squid eat jellyfish, but it's because this jellyfish only resorts to producing this light when it's being chewed on by a predator and its only hope for escape may be to attract the attention of a larger predator that will attack its attacker and thereby afford it an opportunity for escape.