The theory is that Earth’s continents have moved over geologic time relative to each other making it seem like they “drifted” across the ocean beds. This was first proposed by Abraham Ortelius in 1596.
This is actually due to continents being on tectonic plates that slowly shift over time.
Hope this helps!