How does carpet steam cleaning remove stains?

Professional steam cleaners pre-treat stains, then inject hot water and cleaning solution into the carpet. The combination of heat and pressure loosens the stain, which is then extracted by the machine.