The food manufacturer is supposed to follow GMP and prevent allergens for being in foods they shouldn't be in.
It's done for gluten free foods. Gluten free foods have to be under 20ppm to be called GF, and there are many gluten free foods out there. Even some made on the same equipment as gluten containing foods (just cleaned thoroughly).