How do worms come on dead or decaying food?

I recently kept a piece of food on a place which is not very open but soon there were worms and many other things.How did they pop up? Where they there inside the food or something else happened?
asked in biology by

1 Answer

Well this is an event which occurs due to flies or other insects laying their eggs on the food.The egg hatches giving out maggots which thrive by eating the food. It is not coming from inside. Its a good question, few people think about it.
answered by (7k points)