Why don't all birds have wings?

All birds do have wings. For birds like Penguins, the wings have turned into flippers.