The KV cache grows because the self-attention mechanism in Transformers stores Key (K) and Value (V) tensors for all previously processed tokens. This allows the model to avoid recomputing these states at each autoregressive generation step, reducing computational complexity from quadratic to linear. However, this caching mechanism means the memory footprint for the KV cache scales linearly with both the sequence length and the batch size.