Usually a type of genetic or hereditary problem, make susceptible intrauterine forces the child's foot as much as genetics to develop a bunion, is born with the predisposition to develop the deformity.
After 3 years of growth centers and close in the first metatarsal at the base that is where they are, and once closed, you can start talking about reconstructive surgery to correct.