Probably right, KatL. The word appears in print as far back as 1870 acc. to Merriam Webster. The other possibility is using the whip to "skin" the mules, but I doubt that since mule teams were mostly well-cared for because they raised the income of a muleskinner to above the average.