First, to get technical, that tightening phenomenon is called "consolidation shrinkage." Think of denim fibers as a long chain. When fabric is agitated during the wash and heat cycles, it causes fibers to break their bonds so the cloth gets smaller.