With a piece of proper equipment like a turbo brush, you can clean your carpet in 2 passes. Whereas you may need 7-8 passes as well if your equipment is not proper.
Or your machine is not suitable for carpet cleaning.