Why do stars appear to change position in the sky over time?

Because the earth rotates, the stars seem to shift positions in the sky. Just like the sun.

The Earth rotates on its axis and around the sun so technically were moving, not the stars