Compulsory (cold) misses are unavoidable first accesses; capacity misses occur when the working set exceeds cache size; conflict misses arise from data mapping to the same cache location. Loop optimizations, including interchange, primarily reduce capacity and conflict misses by enhancing data locality.