That's not why they fell out of style, though. The main reason is they're difficult to play well (at least compared to the modern flute), and they aren't loud enough. Recorders can't compete against other woodwinds or orchestral instruments, they would just be buried.