I read once that ironically one of the most important ecological niches for mosquitos is that they keep humans out of a bunch of places that allow those habitats to be preserved. It’s their annoyance and medical danger to people that makes them so valuable to the ecosystem.