Get One’s Hands Dirty

What does the idiom “Get One’s Hands Dirty” mean?

Definition:

To do the unpleasant parts of a job

For example:

“The boss isn’t afraid of getting his hands dirty. He’ll come right into the machine shop and work with us if we need him to.”