Herein you're wrong. The wing developed on bipedal dinosaurs (therapods). Recent research of certain ground-dwelling birds in their juvenile state shows that even wings that do not permit flight still aid the animal in climbing out of danger. Flapping the undeveloped wings allows the animal to more effectively cling to the surface of the feature (tree, log, rock face) it is climbing to escape predators.
Any advantage in the game of life is likely to propagate throughout the gene pool.
Flapping the undeveloped wings allows the animal to more effectively cling to the surface of the feature (tree, log, rock face) Yeah, I've noticed how well domesticated chickens, with their poorly developed wings easily run and flap their way to safety.