How did science fiction come to be?

Science Fiction has been with us since the bronze age. The legends of Daedalus are good examples gadgetry sf from ancient times.