I think the problem is residues rather than ph. There are a lot of operators using inferior equipment with no training. We have local cowboys who I am advised use Persil.
If the cleaner responsible for this clean had a poor machine and used too much chemical, they always put an extra couple of glugs in for good measure, then regardless of the ph the carpet would get filthy straight away because of the sticky detergent residues left behind.