The opposite holds in the case of Gaudeamus Igitur, which because of its Latin words is sometimes mistaken for a hymn. That is based on an earlier hymn tune, and is a student drinking song.
https://en.wikipedia.org/wiki/Gaudeamus_igitur
See also Brahms's Academic Festival Overture.
Can I suggest someone looks into the Sally Army repertoire? ('Why should the Devil have all the best tunes?')
Not a drinking song as such but quite possibly a song about a lady of 'negotiable affection', Greensleeves has been used as a hymn tune - for What Child is This.
Also, in the medieval and post medieval times, there wasn't the distinction between sacred and secular in music that we have now. A tune that did for a ballad also did for a hymn. The droned dirges about joy that characterise Anglican services for me are a relatively modern phenomenon. For real joy, try Hildegard of Bingen
https://en.wikipedia.org/wiki/Hildegard_of_Bingen
The Anglicans might celebrate her as a saint, but they ignore her musical lessons...)