Originally, a musical fantasy was a piece that instrumentalists made up as they went along. Eventually, fantasies evolved into pieces that composers built out of various melodies they liked — like the Scottish folk tunes that Max Bruch put into his Scottish Fantasy for violin and orchestra.