birds evolved from dinosaurs. the goose specifically evolved from the brontosaurus. thus the long necks. the bronto front legs became wings and the tail became the rear feathers. the back legs are still the back legs just slightly different (webbing). this took dozens of generations to happen, it didn't just instantly transform.
imagine a goose the size of a bronto. holy moly. alpha predator.