They also kill rivers and lakes. In my country, a massive move to dairying has corresponded to a massive increase in eutrophication.
But that move to dairy from beef or sheep farming wasn't to feed the world, it was just to sell milk powder to China.