A front leg on a reptile, through a multitude of changes becomes a dinosaur’s (velociraptors) arm which through a series of small changes each of which was either beneficial or neutral became a wing which combined with pre existing feathers became a wing for gliding and eventually flying. Over time you got a bird or rather numerous similar kinds of bird like creatures.
That happened in someones mind. Not in reality.