Why are Noctiluca flourescent?

I am not asking for florezing bacteria creating light by ATP
driven things. I wounder why they lights up when the
water is shaken.
All ecological/ evolutional explainations will also be
apreaciated
Kjell Magne Fagerbakke