I've asked my husband about this and in twenty years, he can't ever recollect coming across a moth problem, in carpets, besides, the carpet is clearly an inexpensive synthetic with th pile held by adhesive.
You can also see, quite clearly, the difference in colour, which would again suggest an attempt to clean off paint, perhaps with to much solvent, or too much vigour.
Angie