I've heard the same, but it really feels like a naïve take. We can't know for sure that they have no positive purpose in their ecosystems, and eradicating them is a one way street.
No idea where the belief came from, but it's a bit concerning how widely held it is.