In most cases, rugs are dirty since they have foreign substances ground deep in the fibers.
All of the solutions used for shampooing contain brighteners which could make your carpet look very good afterwards. https://oke.zone/viewtopic.php?id=281573