Improvisation
In Baroque times, all musicians were taught to improvise because composers often did not bother to write all the notes down.  Musicians would have improvised lots of ornaments, and even whole sections.