A '''prelude is''' is “something that goes before”.
In music, the term began to describe pieces, often improvised, designed to test or “warm up” the instrument – and, it is supposed, the performer – before the serious music began; whether a recital or part of a church service. This use of the term goes back to the 15th century.