Scientists were studying a tree-climbing species of mudskipper in Indonesia when they observed the odd behavior.