The easy answer: Load balancing
Anycast is the most important piece of the puzzle, allowing you to route traffic to a bunch of different locations.
Let's say you can handle 10 Gbps at a single location. If the traffic is evenly split between 100 destinations then you can have a single IP that can handle 1 Tbps of traffic.
Of course, the setup behind these IPs might vary a lot, and one might even use DNS load balancing in front of the IPs.