When something moves in your peripheral vision, your brain signals your eyes to shift the central vision to focus on it.
We call this the fixation reflex.