Both sound recording and film recording existed since 19th century but?

Both sound recording and film recording existed since 19th century but sound films couldn't come till late 1920s. Why?

Couldn't they record sound and film seperately and play them together, therefore it would be a sound film?

Both sound recording and film recording existed since 19th century but?
Post Opinion