How does camouflage help an insect?

Camouflage is the ability to lend with the surroundings or background.Some species of insects and frogs are cryptically-coloured(camouflaged) to avoid being detected easily by the predator.