Because they’re only tiny little points of light that we’re looking at through the Earth’s atmosphere. All the bits of dust, clouds and so on up there get in the way of the light coming from the stars and effectively switch them on and off. This doesn’t happen for the Sun or Moon (or indeed for the planets) because they’re bigger and so even if a bit of light gets blocked, other light gets through and keeps it seeming constant.
Comments