In the army, they were comonly used as drummer boys. Thus a higher chance of dying, since they were marching toward the front.
A common meme in books about that time is that young boys from orphanages were ‘sold’ to army recruiting officers for drummer boys, through bribes paid to the orphanage master.