The flute belongs to the woodwind family because historically it was made of wood. Modern flutes use silver, gold, platinum, but the classification remains based on sound production: air blown across a hole creates vibrations in the air column inside the tube.
Varying sizes, shapes, and lengths of woodwinds yield distinct tonal qualities—the material doesn't define the family; the acoustic principle does.