Dear student,
The sunlight reaches our Earth's atmosphere and is scattered in all directions by all the gases and particles present in the atmosphere. Blue light is scattered the most in all directions by the tiny molecules of air in Earth's atmosphere. Blue is scattered more than other colours because it travels as shorter, smaller waves, i.e., it has a shorter wavelength. On the other hand, red colour has a longer wavelength.This is the reason of appearance of a blue sky most of the time.
Regards.