The missing step in the sequence is likely:
"Farmers use pesticides and fertilizers that can be washed away by rain or flooding."
This step connects the use of harmful chemicals by farmers to the subsequent transport of those chemicals into rivers and eventually the ocean.