The Earth turns, not the sky
Aryabhatiya, Golapada 9अनुलोमगतिर्नौस्थः पश्यत्यचलं विलोमगं यद्वत् ।
अचलानि भानि तद्वत् समपश्चिमगानि लङ्कायाम् ॥
anulomagatir nausthaḥ paśyaty acalaṃ vilomagaṃ yadvat |
acalāni bhāni tadvat samapaścimagāni laṅkāyām ||
Translation
Just as a person in a boat moving forward sees the still objects on the bank moving backward, so the still stars are seen at Lanka (on the equator) moving straight to the west.
In simple words
The stars only seem to move because the Earth itself turns.