Shallow waters will sometimes get too hot, forcing one fish to make a break for the shore. The tiny mangrove rivulus (shown above) avoids neurological damage from hot swamps by escaping to land. Retreating to land allows the fish to cool down through a process called
evaporative cooling, which is akin to human sweating but using water from the environment. Previously, scientists had suggested that the fish, besides simply escaping hot water, might be taking advantage of evaporative cooling.
Source: http://rsbl.royalsocietypublishing.org/content/11/10/20150689