Most carpet fibres are dyed either as a completed yarn or as a completed carpet ie topically dyed or printed carpet.
Polypropylene/olefin is a fibre that resists water so therefore resists the water based dyes that would otherwise be used as above. This means that it can't practically be dyed and also it is very difficult to stain with water based soiling.
To add colour to polypropylene, the pigment is added to the raw plastic and it is melted to form one coloured fibre that is solid all the way through. This is called solution dyeing. There is no dye on the surface of the fibre/yarn, so it cannot be bleached away. Sometimes, nylon is also coloured in this way.
A commonly used illustration of the two different types of dyeing is the raddish and the carrot. Cut through a raddish and it will be red on the outside and white inside. This is like topical dyes. Cut through a carrot and it is orange all the way through. This is like solution dye.
Simples.
Safe and happy cleaning

The Ken