suggests that
dirty, unpleasant or unglamorous work can be profitable. The saying can also imply that wealth is sometimes associated with morally questionable activity.
Imagine a case where people can earn a lot of money if they don't mind using illegal methods.; then “Muck and money go together” fits well.