Mats protect the carpet. They also hide what happens beneath them. After a wet week or a spill, lift each mat and press a paper towel hard into the carpet. If it comes up damp, you have found the cause of the smell, and cleaning the mat will not remove it.
A damp carpet needs drying, and a soaked or stained one needs extraction, which flushes the fibers with hot water and pulls the liquid straight back out. That is $25 per area, capped at $125 on a sedan or midsize SUV and $175 on a large vehicle. Sand that has worked deep into the carpet and mats is its own add-on, Full Sand Removal, at $125 on any size. Beach trips and street-parked coastal cars are where it usually comes from.
Pet hair in carpet mats is a separate job again. Hair works into the loops and does not vacuum out. The pet hair guide covers the raking method.