My layman's guess was the same as yours - it's probably an excretory product which just happens to be fluorescent, and which is dumped in the exoskeleton just for convenience.