Hymn tunes are (almost by definition) good for large groups of people to sing, so it's not surprising that many hymn writers have "borrowed" traditional tunes for their hymns; nor that many popular hymn tunes have been pressed into ungodly service by students, rugby players and the like.