What is a “nerf”, and why is herding them used by Leia as an insult in Empire Strikes Back?

In the Star Wars universe, a "nerf" is a domesticated, herbivorous mammal, typically raised for its meat and fur, resembling a cow in both appearance and function.

These creatures, known for their distinctive and unpleasant odor, are prevalent across various planets, including Alderaan.

Herding nerfs is considered a low-status occupation, associated with rural, less technologically advanced regions of the galaxy. 

This job's perceived lack of sophistication and intellectual engagement contributes to its reputation as menial and unglamorous, highlighting the broader societal disdain for those who work with these animals.

What is a “nerf”, and why is herding them used by Leia as an insult in Empire Strikes Back?

Thus, nerf herders are often stereotyped as unsophisticated and unrefined, a sentiment underscored by Princess Leia's famous insult to Han Solo in The Empire Strikes Back:
 

    Why, you stuck up, half-witted, scruffy-looking, Nerf-herder!

By calling Han Solo a “scruffy-looking nerf herder,” Leia not only mocks his appearance but also alludes to his perceived lack of social polish and refinement.