I was wondering about this too! I did not know how they can aim a laser from so far at a moving spaceship.
I generated this visual map about to help me understand it - https://vectree.io/c/aiming-space-lasers-gimbals-and-beam-di...