Dear Student
The reactivity of hydrogen peroxide is very high. So it reacts with light or heat to produce water.
To prevent the reaction of hydrogen peroxide with light and heat to form water, it is stored in coloured bottles, so that light doesn't pass through it and no reaction occurs.
Regards