Answer:
because the atmosphere reflects light
Step-by-step explanation:
When light travels from sun to Earth then the path of light will change continuously due to change in the optical density of the medium.
As we know that as air mass density increases then its optical density also increases and this will bend the light from sun to earth.
Now as light comes towards us from sun it will have multiple refraction and each time while light refracts the different components of light will bend in different directions and this will disperse the light in all directions.
So here while sunset the position of sun will change with time and due to this light of different colours will disperse at each positions of sun.
Due to this phenomenon the colour of sky will change