Two ways to avoid the extracellular space
Direct cell-to-cell spread keeps the infection local and shielded from antibodies, while latency keeps viral protein production so low that immune recognition is minimal. Both allow the virus to persist when free virions would be cleared.
Latency is not clearance
A latent genome is still present and can reactivate. This is why infections such as herpes simplex or HIV establish lifelong reservoirs that current treatments suppress but do not eliminate.