I've only come across mucking in the context of "mucking out the stables." That sounds pretty much self-explanatory and provides a unifying theme for the above usages...