Loop tiling improves both temporal and spatial locality by partitioning data into smaller 'tiles' that fit into cache. This ensures data is reused multiple times while in fast memory (temporal locality) and accessed sequentially within a tile (spatial locality), drastically reducing cache misses.