Both its legs became wings, and as a result, it can’t move well on the ground. All it can do is crawl around.
Over the course of evolution, its hind legs turned into wings. By alternately resting its front and rear wings, it can fly all day without having to stop.