When farmers use chemicals to kill some weed or bugs, those chemicals also were absorbed by the plant and the soil.
That absorption can affect fertility because the chemical can change some chemical and physical traits from the soil and plant.
In worse cases, it can cause erosion, this means, that the soil is "dead" and nothing will grow.