The word likely gained currency because of its apt second meaning, drawn from the
trolls portrayed in
Scandinavian folklore and children's tales;
they are often ugly, obnoxious creatures bent on mischief and wickedness. The image of the troll under the bridge in the "
Three Billy Goats Gruff" emphasizes the troll's negative reaction to outsiders intruding on its physical environment, particularly those who intend to graze in its domain without permission.
The word occurs also in John Awdeley's Fraternity of Vagabonds (1561) to characterize the first four of twenty-five types of disobedient male servants or "knaves." The first entrant in Awdeley's list is particularly illustrative:
Troll and Troll by is he that setteth naught by no man, nor no man by him. This is he that would bear rule in a place and hath no authority nor thanks, and at last is thrust out of the door like a knave.
[2]
It seems a singularly apt description, though no provenance has ever been demonstrated to connect it with the modern usage