Spirit Tracks: The tracks covering the land are a prison created by a race of locomoting sages a hundred years ago to trap the demon king underground. The New Hylians developed their technology to utilize these ancient tracks; which is why this medieval society has trains.
Breath of the Wild: Here, have a fantasy motorcycle, just take it.