They not only had to wait until the space station steered into the proper lane for the Soyuz, but they had to pick a time when the distance between the station and the Soyuz once the Soyuz reached orbit was at a minimum.
FORBES: How Astronauts Got From Kazakhstan To The Space Station In Six Hours