There is no connection between the two it is only happenstance that the same word labeled very different genres in two different periods. Madrigal is the name of a musical genre for voices that set mostly secular poetry in two epochs: the first occurred during the 14th century the second in the 16th and early 17th centuries.