All ratites evolved from prehistoric flying birds, and tinamous are the closest living relative of these birds.
Ratites have a common ancestry with prehistoric flying birds, and tinamous remain the closest surviving relatives to those ancestral species.