A stain repellent is a product added to fabric in order to prevent stains.
[2] Fabrics are finished with certain finishes that do not allow unwanted stains or that will wash out in simple laundry.
Mostly larger PFCAs such as perfluorooctanoic acid (PFOA) are used in stain repellancy.
PFOA is a product of health concern and subject to regulatory action and voluntary industrial phase-outs.
[3] There are chemicals which are based on C8 free chemistry that may be used as an alternative to PFOA, but those are less durable.