Looks like a recruiting song to me, the equivalent of the recruiting TV ads of today. It bulls up the soldier's life and is very patriotic. As Will says it was a common event and this ballad could and was easily adapted to different areas, and there are plenty of similar broadsides.