Two issues:
1. Water covers ~70% of the Earth's surface. Whales migrate of course but can exist from the poles to the equator;
2. Of the 30% land, for pretty much any species, some portion of that is uninhabitable. Dinosaurs being reptiles likely require hot and wet environments. As predators, T. Rex would be limited by where their food could live too.
The dinosaur era was largely one of a super-continent (Pangaea). A good portion of that was likely too cold or too dry to support such a large predator.