my guess is that the decayed meat released the bacterial digested proteins (which gives the stinky smell) into the water and the crabs catch the molecule with their chemical sensor. it is all my speculation, :P