Why do birds and insects have wings?

In order to fly. Some schools of thought would say, in order to increase their potential for survival.
In order to fly. Some schools of thought would say, in order to increase their potential for survival.