A few reasons your carpet may not be salvageable:
Delamination (occurs when the backing separates from the carpet fiber)
Loss of adhesion (may be caused by prolonged exposure to water or age of the carpet)
Permanent stains
Carpet covers wood flooring (to salvage the wood flooring)
Sewage contamination