The importance of ecotoxicity testing lies in its ability to provide data on the environmental safety of chemicals. This information is essential for regulatory agencies to establish safety guidelines and for companies to ensure their products are environmentally safe. It helps in identifying harmful substances and preventing potential damage to the environment.