Answer :

because coloured bottles do not allowed the light to enter the bottle so it prevents 
 hydrogen peroxide from decomposing into water and oxygen.