The apparent position of a star keeps on changing slightly because:
1
Stars are very close to the surface of the earth.
2
Different layers of the atmosphere are of same density
3
Different layers of the atmosphere have different density
4
Star doesn't have it's own light