All ratites evolved from prehistoric flying birds, and tinamous are the closest living relative of these birds.
All ratites stem from ancient aerial birds, and tinamous represent the most recent living descendants of those birds.